provideSiUiState Type documentation¶
TypeScript declaration¶
Enables the automatic storage of UI state for enabled components. Enables the automatic storage of UI state for enabled components. config ? : import { provideSiUiState } from '@siemens/element-ng/common';provideSiUiState(config?: { store?: Type<UIStateStorage>; }): Provider[]
{ store?: Type<UIStateStorage>; } ¶
Types Documentation¶
Interface that defines a UIStateStore. It must be provided via provideSiUiState. load Loads data for a specific stateId. Can be asynchronous. Errors should be handled by the implementation. The Returns: The data or undefined if the data does not exist. Asynchronous implementations must return a Promise containing the data. save Saves data under a specific stateId. Already existing data for that stateId should be overridden. Asynchronous implementations must return a Promise and resolve it once saving was completed. Errors should be handled by the implementation. The import type { UIStateStorage } from '@siemens/element-ng/common';
(stateId: string) => string | Promise<string | null | undefined> | null | undefined ¶ SiUIStateService does not handle errors.(stateId: string, data: string) => void | Promise<void> ¶ SiUIStateService does not handle errors.
Except where otherwise noted, content on this site is licensed under MIT License.