UserInterfaceApi

View as Markdown

Icons, editable and read-only styles, the progress indicator, custom windows, and showing or hiding the UI.

TypeScript
export interface

Methods

MethodReturnsDescription
closeCustomWindowPopup(windowId)voidCloses a custom window
getAdaptableObjectsWithTag(tag, adaptableModule)AdaptableObject[] | undefinedRetrieves all objects in list which contain the given Tag
getAdaptableObjectTags()AdaptableObjectTag[] | undefinedRetrieves any Object Tags (provided in User Interface Options)
getCustomIcons()CustomIcon[]Retrieves Custom Icons provided by users
getEditableCellStyle()AdaptableStyle | undefinedReturns Style set for Editable cells
getEditedCellStyle()AdaptableStyle | undefinedReturns Style for Cells that have been edited
getReadOnlyCellStyle()AdaptableStyle | undefinedReturns Style set for ReadOnly Cells
getStyleClassNames()string[] | undefinedRetrieves any Style Class Names from User Interface Options
getUserInterfaceState()UserInterfaceStateRetrieves the current User Interface State
hideAdaptableUI()voidHides all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)
hideProgressIndicator()voidHides the progress indicator
isAdaptableUIVisible()booleanReturns whether the AdapTable UI is currently visible
openCustomWindowPopup(config)\{ close: () => void; \}Opens a custom window popup
showAdaptableUI()voidShows 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

TypeScript
closeCustomWindowPopup(windowId: string): void;
Parameters
ParameterTypeDescription
windowIdstringwindow popup id
Returns

void

getAdaptableObjectsWithTag

Retrieves all objects in list which contain the given Tag

TypeScript
getAdaptableObjectsWithTag(tag: AdaptableObjectTag, adaptableModule?: AdaptableModule): AdaptableObject[] | undefined;
Parameters
ParameterTypeDescription
tagAdaptableObjectTagTag to check
adaptableModuleAdaptableModuleoptional 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)

TypeScript
getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
Returns

Any Object Tags (provided in User Interface Options)

AdaptableObjectTag[] | undefined

getCustomIcons

Retrieves Custom Icons provided by users

TypeScript
getCustomIcons(): CustomIcon[];
Returns

Custom Icons provided by users

CustomIcon[]

getEditableCellStyle

Returns Style set for Editable cells

TypeScript
getEditableCellStyle(): AdaptableStyle | undefined;
Returns

Style set for Editable cells

AdaptableStyle | undefined

getEditedCellStyle

Returns Style for Cells that have been edited

TypeScript
getEditedCellStyle(): AdaptableStyle | undefined;
Returns

Style for Cells that have been edited

AdaptableStyle | undefined

getReadOnlyCellStyle

Returns Style set for ReadOnly Cells

TypeScript
getReadOnlyCellStyle(): AdaptableStyle | undefined;
Returns

Style set for ReadOnly Cells

AdaptableStyle | undefined

getStyleClassNames

Retrieves any Style Class Names from User Interface Options

TypeScript
getStyleClassNames(): string[] | undefined;
Returns

Any Style Class Names from User Interface Options

string[] | undefined

getUserInterfaceState

Retrieves the current User Interface State

TypeScript
getUserInterfaceState(): UserInterfaceState;
Returns

The current User Interface State

UserInterfaceState

hideAdaptableUI

Hides all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)

TypeScript
hideAdaptableUI(): void;
Returns

void

hideProgressIndicator

Hides the progress indicator

TypeScript
hideProgressIndicator(): void;
Returns

void

isAdaptableUIVisible

Returns whether the AdapTable UI is currently visible

TypeScript
isAdaptableUIVisible(): boolean;
Returns

true when the AdapTable UI is currently visible

boolean

openCustomWindowPopup

Opens a custom window popup

TypeScript
openCustomWindowPopup(config: CustomWindowConfig): {
        close: () => void;
    };
Parameters
ParameterTypeDescription
configCustomWindowConfigThe 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.)

TypeScript
showAdaptableUI(): void;
Returns

void

showProgressIndicator

Displays a progress indicator

TypeScript
showProgressIndicator(config: ProgressIndicatorConfig): {
        close: () => void;
    };
Parameters
ParameterType
configProgressIndicatorConfig
Returns

An object with a close method to close the window

\{ close: () => void; \}