OptionalclassOptionalconstrainset to constrain floating panels to within the layout control
factory function for creating the tab components
Optionali18nfunction called for each I18nLabel to allow user translation, currently used for tab and tabset move messages, return undefined to use default values
OptionaliconsCustom icons for close, pin, maximize, restore, more, popout buttons.
Optionalinvalidateboolean value, defaults to true. When true every render of the host
Optionalkeykeyboard bindings for the layout's command shortcuts (close tab, rename tab, focus toggle, close overlay border), merged over defaultKeyMap; pass an explicit undefined for a binding to disable that shortcut. The configured bindings are advertised to assistive technology via aria-keyshortcuts
the model for this layout
Optionalonfunction called whenever the layout generates an action to update the model (allows for intercepting actions before they are dispatched to the model, for example, asking the user to confirm a tab close.) Returning undefined from the function will halt the action, otherwise return the action to continue
Optionaloncallback for handling mouse clicks on tabs and tabsets with alt, meta, shift keys, also handles center mouse clicks
Optionaloncallback for handling context actions on tabs and tabsets
OptionalonHandle external drag-and-drop onto the layout. Return undefined to reject.
Optionalonfunction called when model has changed
OptionalonCalled when a popout window closes, after its layout has been removed from the model. Allows teardown (e.g. disposing per-window style caches). Fires once per popout, including when the main window unloads.
OptionalonCalled once a popout window's document is ready, before its content is rendered. Allows styling-specific setup to run with the popout window/document in hand (e.g. pre-creating an emotion cache or styled-components sheet that targets the popout document).
Optionaloncallback for rendering the drag rectangles
Optionalonfunction called when rendering a tab, allows leading (icon), content section, buttons and name used in overflow menu to be customized
Optionalonfunction called when rendering a tabset, allows header and buttons to be customized
Optionaloncallback for handling the display of the tab overflow menu
Optionaloncallback for rendering a placeholder when a tabset is empty
Optionalpopoutsets a top level class name on popout windows
OptionalpopoutURL of popout window relative to origin, defaults to popout.html
OptionalpopoutName given to popout windows, defaults to 'Popout Window'
Optionalrealtimeboolean value, defaults to false, resize tabs as splitters are dragged. Warning: this can cause resizing to become choppy when tabs are slow to draw
OptionalrenderWrap the content rendered into a popout window, e.g. to inject css-in-js styles into the popout document via an emotion CacheProvider or a styled-components StyleSheetManager targeting the popout document's head. css-in-js libraries that insert rules through the CSSOM (emotion's production "speedy" mode) are invisible to the runtime style copy, so styles must be written into the popout document directly. The default returns the children unchanged.
Optionalsupportsif left undefined will do simple check based on userAgent
Optionaltabthe transition speed of the drag rectangle from one position to another, default is 0.3 secs
function called with default css class name, return value is class name that will be used. Mainly for use with css modules.