Motor
The component for connecting to your Qlik Sense site.
Usage
The Motor component handles connection to the Qlik engine. For the hooks in this package to work, you need to set this up at the root of your application.
Go to the root of your application and do the following:
In the above example, we are connecting to a Qlik site, hosted on localhost port 19077, to an app called myAwesomeapp.
If you are using Create React App, you are advised to set this up in index.js
or index.tsx
, in the ReactDom.render
method
Example set up in Create React App
Example customised login, with data from an appSettings file
index.js
settings.js
Props
Prop | Description | Options/Example |
| Configuration object to connect to your Qlik site | { |
| Qlik engine object, output of the useEngine hook. If you are not setting the config prop, you can pass the Qlik engine object directly via this prop. This is particularly useful if you are connecting to your Qlik site server side (using JWT or certificates). | object |
| License key to remove Motor watermark | string |
| Path to logo to appear in the login component | string |
| Logo height | string |
| Logo width | string |
| Color of the buttons on both the Login and Not Connected components | string |
| Font color of the buttons on both the Login and Not Connected components | string |
| Login header test | string |
| Login body text | string |
| Login body text which appears under the body text | string |
| Login & Not Connected modal font | string |
| Header text in the Not Connected modal | string |
| Body text in the Not Connected modal | string |
Last updated