ExperimentalExperimentalcontainerExperimentallayoutExperimentallayoutOptional ExperimentalmultiOptionalrenderCallback invoked for each stack when its header controls area is rendered.
The callback receives the .lm_controls DOM element and a context object
with a getStack() async getter.
Use this to inject custom controls (e.g. search buttons) into stack headers.
Optionally return a cleanup function that will be called when the stack is destroyed.
Custom controls are not serialized into snapshots since callbacks are not serializable. The callback is re-invoked when layouts are restored.
NOTE: This feature is currently only supported in OpenFin Runtime environments.
The .lm_controls DOM element for the stack header.
Context object providing an async getStack() to retrieve the TabStack instance.
A callback to be called when the rendered element needs to be cleaned up.
Controls the View behavior for the given
layoutproperty. Note that the selected behavior only applies to unnamed Views or Views with the prefixinternal-generated-. In all cases, if any View in thelayoutdoes not already exist, it will be created with a name that starts withinternal-generated-.When set to
reparent, Views prefixed withinternal-generated-will be reparented to the current Window and added to this new Layout. Use this option when you need to transfer an existing Layout between Windows.When set to 'duplicate', Views prefixed with
internal-generated-will be duplicated with new generated names. Use this option when you need to clone a Layout to any Window.When set to
defaultor omitted, the Layout will attempt to re-use existing Views only if they are attached to the current Window or the Provider Window. Set todefaultor omit this option when creating Layouts as part of implementing the LayoutManager::applyLayoutSnapshot override. Note that during applyLayoutSnapshot, Views are created and attached to the Provider while the Window is being created, so it's important to not 'duplicate' Views in this workflow.