EqContext extensions

Index

Methods

Methods


setLicenseKeyEndpoint

Sets the endpoint for getting the license key (/.easyquery/lck by default)

▸ 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 /.easyquery/lck endpoint

Returns void

Example:


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