types.ui.layout.ILayoutOptions - ZeMA-gGmbH/NoPE-JS GitHub Wiki

Interface: ILayoutOptions<D>

ui.layout.ILayoutOptions

Options for a Layout

Export

ILayoutOptions

Template

The Template Element.

Type parameters

Name Type Description
D extends IMinProvidedDataSet Callback Data

Properties

adaptData

adaptData: IAdaptDataCallback<D>

An addtional Function which will be called before a Callback of the Context-Menu or Toolbar will be called.

Memberof

ILayoutOptions


dispose

Optional dispose: () => Promise<void>

Type declaration

(): Promise<void>

Function, which will be called before the Componented is getting destroyed. This function could be used to clean up everything

Memberof

ILayoutOptions

Returns

Promise<void>


fullScreen

Optional fullScreen: boolean

Boolean to toggle the FullScreen

Author

M.Karkowski

Memberof

ILayoutOptions


hotkeys

Optional hotkeys: IHotKeyAction<D>[]

Optional Hotkey, which will triggerd custom Functions

Memberof

ILayoutOptions


id

Optional id: string

Define a custom ID.


onEditModeChanged

Optional onEditModeChanged: (editingEnabled: boolean) => Promise<void>

Type declaration

(editingEnabled): Promise<void>

Callback, which will be used to provide the actual Editmode.

Memberof

ILayoutOptions

Parameters
Name Type
editingEnabled boolean
Returns

Promise<void>


onReady

Optional onReady: () => Promise<void>

Type declaration

(): Promise<void>

Called if the layout is ready

Author

M.Karkowski

Memberof

ILayoutOptions

Returns

Promise<void>


onResized

Optional onResized: (panels: IPossiblePanels) => Promise<void>

Type declaration

(panels): Promise<void>

Optional callback which will be called it a resize event occours.

Memberof

ILayoutOptions

Parameters
Name Type
panels IPossiblePanels
Returns

Promise<void>


panels

panels: IPanel[]

A List containing all Panels, which should be generaged

Memberof

ILayoutOptions


showToggleElements

Optional showToggleElements: boolean

Helper to show the Toggle Elements or not.


title

title: string

The Title which will be shown on the Top. If not present, no titlebar will be shown

Memberof

ILayoutOptions


toolbar

Optional toolbar: Object

Configuration of the Toolbar.

Memberof

ILayoutOptions

Type declaration

Name Type Description
config IToolbarConfig<D> A Toolbar Configuration.
panel ValidPanels The Panel, which will be used to render the Toolbar. Normally this should be set to "top".
⚠️ **GitHub.com Fallback** ⚠️