EqContext extensions

Index

Methods

Methods


setLicenseKeyEndpoint

Sets the endpoint for getting the license key.

▸ setLicenseKeyEndpoint(this: EqContext,endpoint: string): void

Parameters:

Returns void


useEnterprise

Extension method that activates Enterprise functionality

▸ useEnterprise(this: EqContext,keyOrInitCallback: string | () => void): void

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 /lck endpoint

Returns void

Example:


context.useEnterprise('license key')
//or
context.useEnterprise(() => {
  //further logic
	view.init(options);
});