EqContext extensions
Methods
Section titled “Methods”setLicenseKeyEndpoint
Section titled “setLicenseKeyEndpoint”Sets the endpoint for getting the license key.
▸ setLicenseKeyEndpoint(this: EqContext,endpoint: string
): void
Parameters:
Section titled “Parameters:”- this: EqContext
- endpoint:
string
Returns void
useEnterprise
Section titled “useEnterprise”Extension method that activates Enterprise
functionality
▸ useEnterprise(this: EqContext,keyOrInitCallback: string
| () => void
): void
Parameters:
Section titled “Parameters:”- this: EqContext
- keyOrInitCallback:
string
| () =>void
- The license key or a callback wich is called after loading the license key from the back-end. If the callback function is called useEnterprise will try to get the license key from {base}/lck endpoint
Returns void
Example:
Section titled “Example:”context.useEnterprise('license key')//orcontext.useEnterprise(() => { //further logic view.init(options);});