UserInterfaceApi
Icons, editable and read-only styles, the progress indicator, custom windows, and showing or hiding the UI.
export interfaceMethods
| Method | Returns | Description |
|---|---|---|
| closeCustomWindowPopup(windowId) | void | Closes a custom window |
| getAdaptableObjectsWithTag(tag, adaptableModule) | AdaptableObject[] | undefined | Retrieves all objects in list which contain the given Tag |
| getAdaptableObjectTags() | AdaptableObjectTag[] | undefined | Retrieves any Object Tags (provided in User Interface Options) |
| getCustomIcons() | CustomIcon[] | Retrieves Custom Icons provided by users |
| getEditableCellStyle() | AdaptableStyle | undefined | Returns Style set for Editable cells |
| getEditedCellStyle() | AdaptableStyle | undefined | Returns Style for Cells that have been edited |
| getReadOnlyCellStyle() | AdaptableStyle | undefined | Returns Style set for ReadOnly Cells |
| getStyleClassNames() | string[] | undefined | Retrieves any Style Class Names from User Interface Options |
| getUserInterfaceState() | UserInterfaceState | Retrieves the current User Interface State |
| hideAdaptableUI() | void | Hides all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.) |
| hideProgressIndicator() | void | Hides the progress indicator |
| isAdaptableUIVisible() | boolean | Returns whether the AdapTable UI is currently visible |
| openCustomWindowPopup(config) | \{ close: () => void; \} | Opens a custom window popup |
| showAdaptableUI() | void | Shows all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.) |
| showProgressIndicator(config) | \{ close: () => void; \} | Displays a progress indicator |
Method Details
closeCustomWindowPopup
Closes a custom window
closeCustomWindowPopup(windowId: string): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| windowId | string | window popup id |
Returns
void
getAdaptableObjectsWithTag
Retrieves all objects in list which contain the given Tag
getAdaptableObjectsWithTag(tag: AdaptableObjectTag, adaptableModule?: AdaptableModule): AdaptableObject[] | undefined;Parameters
| Parameter | Type | Description |
|---|---|---|
| tag | AdaptableObjectTag | Tag to check |
| adaptableModule | AdaptableModule | optional Module to check |
Returns
All objects in list which contain the given Tag
AdaptableObject[] | undefined
getAdaptableObjectTags
Retrieves any Object Tags (provided in User Interface Options)
getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;Returns
Any Object Tags (provided in User Interface Options)
AdaptableObjectTag[] | undefined
getCustomIcons
Retrieves Custom Icons provided by users
getCustomIcons(): CustomIcon[];Returns
Custom Icons provided by users
getEditableCellStyle
Returns Style set for Editable cells
getEditableCellStyle(): AdaptableStyle | undefined;Returns
Style set for Editable cells
AdaptableStyle | undefined
getEditedCellStyle
Returns Style for Cells that have been edited
getEditedCellStyle(): AdaptableStyle | undefined;Returns
Style for Cells that have been edited
AdaptableStyle | undefined
getReadOnlyCellStyle
Returns Style set for ReadOnly Cells
getReadOnlyCellStyle(): AdaptableStyle | undefined;Returns
Style set for ReadOnly Cells
AdaptableStyle | undefined
getStyleClassNames
Retrieves any Style Class Names from User Interface Options
getStyleClassNames(): string[] | undefined;Returns
Any Style Class Names from User Interface Options
string[] | undefined
getUserInterfaceState
Retrieves the current User Interface State
getUserInterfaceState(): UserInterfaceState;Returns
The current User Interface State
hideAdaptableUI
Hides all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)
hideAdaptableUI(): void;Returns
void
hideProgressIndicator
Hides the progress indicator
hideProgressIndicator(): void;Returns
void
isAdaptableUIVisible
Returns whether the AdapTable UI is currently visible
isAdaptableUIVisible(): boolean;Returns
true when the AdapTable UI is currently visible
boolean
openCustomWindowPopup
Opens a custom window popup
openCustomWindowPopup(config: CustomWindowConfig): {
close: () => void;
};Parameters
| Parameter | Type | Description |
|---|---|---|
| config | CustomWindowConfig | The configuration for the custom window |
Returns
An object with a close method to close the window
\{ close: () => void; \}
showAdaptableUI
Shows all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)
showAdaptableUI(): void;Returns
void
showProgressIndicator
Displays a progress indicator
showProgressIndicator(config: ProgressIndicatorConfig): {
close: () => void;
};Parameters
| Parameter | Type |
|---|---|
| config | ProgressIndicatorConfig |
Returns
An object with a close method to close the window
\{ close: () => void; \}