initialize MethodStatic
Initializes Presentation library for the frontend.
Example:
Presentation.initialize({
// specify `clientId` so Presentation framework can share caches
// between sessions for the same clients
clientId: MyAppFrontend.getClientId(),
// specify locale for localizing presentation data
activeLocale: IModelApp.i18n.languageList()[0],
});
The method should be called after a call to IModelApp.startup
initialize(props?: PresentationManagerProps): void
Parameter | Type | Description |
---|---|---|
props | PresentationManagerProps | Optional properties to use when creating PresentationManager. If not provided or provided with activeLocale not set, Presentation.i18n.languageList()[0] is used as active locale. |
Defined in
Last Updated: 08 January, 2020