NE.Standard

Tab item

One tab of a TabsViewComponent.

TabItemComponent · type key standard.tab-item · Navigation · property blocks: IItemAbilitiesComponent

Not a ButtonComponent: the caption carries a close button, and a button inside a button is invalid markup.

new TabItemComponent("tab-item")

Properties

PropertyTypeDefaultBindingDescription
RenamedTitle
SetRenamedTitle · BindRenamedTitle
stringnulltwo-wayThe caption as a rename wrote it back; the caption region itself draws the title.
Order
SetOrder · BindOrder
double?nulltwo-wayWhere this tab sits in the strip, ascending.
Two-way: a drag writes the dropped tab's new position back, so reordering changes the item, not the collection.
Pinned
SetPinned · BindPinned
bool?falseone-wayWhether the tab is pinned: drawn with a pin, without its close control, and left where it is by a drag. Whether a close from elsewhere is refused is the controller's answer.
CanSelect
SetCanSelect · BindCanSelect
bool?nullone-wayWhether the row may be chosen; unset means it may.
CanDrag
SetCanDrag · BindCanDrag
bool?nullone-wayWhether the row may be dragged, where its host drags at all; unset means it may.
CanRemove
SetCanRemove · BindCanRemove
bool?nullone-wayWhether the row may be removed by the host's own gesture; unset means it may.
CanRename
SetCanRename · BindCanRename
bool?nullone-wayWhether the row may be renamed in place, where its host renames at all; unset means it may.
CanShowContextMenu
SetCanShowContextMenu · BindCanShowContextMenu
bool?nullone-wayWhether a right-click on the row opens the menu its template carries; unset means it does.

Events

OnRemove(string command, params KeyValuePair<string, UIActionArgument>[] arguments)
Registers a command invoked when this tab's close is pressed; the controller removes the tab or leaves it.
OnRename(string command, params KeyValuePair<string, UIActionArgument>[] arguments)
Registers a command invoked when this tab's caption is renamed in place.

Methods

ConfigureDefaultCaption(Action<TabCaptionRegion> configure)
Configures the built-in caption region.
SetPage(IVisualComponent page)
Sets the page this tab opens.
Common properties (16) — layout, visibility, theme, and the rest every component shares
PropertyTypeDefaultBindingDescription
Visibility
SetVisibility · BindVisibility
UIResponsive<UIVisibility>?Visibleone-wayWhat the component does with the room it was given, optionally overridden per breakpoint (e.g. collapsed from a given width up).
Enabled
SetEnabled · BindEnabled
bool?trueone-wayWhether the component responds to input; false dims it and marks it, and its subtree, inert.
Theme
SetTheme · BindTheme
UIThemeMode?nullone-wayThe theme mode forced on this component's subtree, or null to inherit the ambient theme.
HorizontalAlignment
SetHorizontalAlignment · BindHorizontalAlignment
UIAlignment?UIAlignment.Stretchone-wayWhere the component sits within its grid cell along the horizontal axis.
VerticalAlignment
SetVerticalAlignment · BindVerticalAlignment
UIAlignment?UIAlignment.Stretchone-wayWhere the component sits within its grid cell along the vertical axis.
Width
SetWidth · BindWidth
UIResponsive<UILayoutLength>?nullone-wayThe component width, optionally overridden per breakpoint.
MinWidth
SetMinWidth · BindMinWidth
UIResponsive<UILayoutLength>?nullone-wayThe component minimum width, optionally overridden per breakpoint.
MaxWidth
SetMaxWidth · BindMaxWidth
UIResponsive<UILayoutLength>?nullone-wayThe component maximum width, optionally overridden per breakpoint.
Height
SetHeight · BindHeight
UIResponsive<UILayoutLength>?nullone-wayThe component height, optionally overridden per breakpoint.
MinHeight
SetMinHeight · BindMinHeight
UIResponsive<UILayoutLength>?nullone-wayThe component minimum height, optionally overridden per breakpoint.
MaxHeight
SetMaxHeight · BindMaxHeight
UIResponsive<UILayoutLength>?nullone-wayThe component maximum height, optionally overridden per breakpoint.
ZIndex
SetZIndex · BindZIndex
int?0one-wayThe stacking order within the visual tree.
Margin
SetMargin · BindMargin
UIResponsive<UIThickness>?nullone-wayThe outer spacing around the component, optionally overridden per breakpoint.
Placement
SetPlacement · BindPlacement
UIResponsive<UIGridPlacement>?nullone-wayThe grid placement, optionally overridden per breakpoint.
Loading
SetLoading · BindLoading
bool?falseone-wayWhether the component is in loading state — a live state a controller turns on and off.
ShowContextMenu
SetShowContextMenu · BindShowContextMenu
bool?trueone-wayWhether a right-click opens the IVisualComponent.ContextMenu; on a host with rows, whether it opens any row's. Off, the menu stays in the tree and nothing opens it.