init - Initialization API
@since v1.0.0
Module Overview
Provides methods such as init.
Methods
init
Initialize the engine
Method signature
function init(container?: Element, options?: IPublicTypeEngineOptions): void;
Engine initialization configuration options
Usage Examples
import { init } from '@rchh/lowcode-engine';
init(document.getElementById('engine'), {
enableCondition: false,
});
Open mobile canvas by default
import { init } from '@rchh/lowcode-engine';
init({
device: 'mobile',
});
Extend with third-party utils
import { init } from '@rchh/lowcode-engine';
init({
device: 'mobile',
appHelper: {
utils: {
xxx: () => {console.log('123')},
}
}
});
You can then use it in the engine like this.
