@serenity-is/corelib / addPropertyTab
Function: addPropertyTab()
addPropertyTab(
container,opt):HTMLElement
Defined in: src/ui/widgets/propertygrid.tsx:322
Adds a tab to the tabs of a property grid, e.g. of the form of an entity dialog, after its own tabs: an item with the key, and an empty pane, which is returned to be filled, e.g. by a feature that adds a tab to the dialogs of some entities. The tab is shown by the tabs of the grid like its own ones.
Parameters
container
ParentNode
The element of the property grid, or one that contains it.
opt
The key of the tab, e.g. "History", its title, and the id of its pane.
key
string
paneId
string
title
string
Returns
HTMLElement
The pane of the tab, or null when the grid has no tabs.