Usage
Signature:
interface CTabBarMixedElement
Typescript Import Format
//To typecheck the element APIs, import as below.
import { CTabBarMixedElement } from "oj-c/tab-bar-mixed";
//For the transpiled javascript to load the element's module, import as below
import "oj-c/tab-bar-mixed";
For additional information visit:
Note: Application logic should not interact with the component's properties or invoke its methods until the BusyContext indicates that the component is ready for interaction.
Attributes
-
dynamic-tabs :Array.<oj-c.TabBarMixed.TabData.<(string|number)>>
-
Specifies the data definitions for the dynamics tabs (the collection of tabs that are removable).
Names
Item Name Property dynamicTabsProperty change event dynamicTabsChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-dynamic-tabs-changed -
dynamic-tabs-overflow :"conveyor"|"popup"
-
Specifies whether the dynamic tabs are displayed inside a conveyor belt or a popup.
Supported Values:
Value Description conveyorDynamic tabs are displayed inside a conveyor belt. popupDynamic tabs are displayed inside a popup. Names
Item Name Property dynamicTabsOverflowProperty change event dynamicTabsOverflowChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-dynamic-tabs-overflow-changed -
dynamic-tabs-overflow-icon :{ type?: 'class'; class: string; }|{ type: 'img'; src: string; }
-
Specifies the icon used on the overflow tab when dynamicTabsOverflow is set to 'popup'.
Names
Item Name Property dynamicTabsOverflowIconProperty change event dynamicTabsOverflowIconChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-dynamic-tabs-overflow-icon-changed -
selection :K
-
The key of the currently selected tab.
- Supports writeback:
true
Names
Item Name Property selectionProperty change event selectionChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-selection-changed -
separator-padding :string
-
The padding around the vertical divider that seperates collections of tabs.
Names
Item Name Property separatorPaddingProperty change event separatorPaddingChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-separator-padding-changed -
size :"md"|"lg"
-
Specifies the size of the TabBarMixed.
Supported Values:
Value Description lgTabBarMixed is set with a large height. mdTabBarMixed is set with a medium height. Names
Item Name Property sizeProperty change event sizeChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-size-changed -
static-tabs :Array.<oj-c.TabBarMixed.TabData.<(string|number)>>
-
Specifies the data definitions for the static tabs (the collection of tabs that are non-removable).
Names
Item Name Property staticTabsProperty change event staticTabsChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-static-tabs-changed -
static-tabs-display :"standard"|"icons"
-
Whether to display both the label and icons ("standard") or just the icons ("icons"). In the latter case, the label is displayed in a tooltip instead.
Supported Values:
Value Description iconsOnly icons are shown for all static tabs. standardLabel and icon are shown for all static tabs. Names
Item Name Property staticTabsDisplayProperty change event staticTabsDisplayChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-static-tabs-display-changed
Events
-
ojBeforeSelect
-
Triggered before user selects a tab which includes user gestures or selection is changed programmatically.
Properties:
All of the event payloads listed below can be found under
event.detail. See Events and Listeners for additional information.Name Type Description acceptfunction This method can be called with an application-created Promise to cancel this event asynchronously. The Promise should be resolved or rejected to accept or cancel the event, respectively. keyK -
ojRemove
-
Triggered when user performs a remove gesture on a tab. The remove gestures include:
- User clicks the remove icon in a tab
- User presses Delete key on a tab
Properties:
All of the event payloads listed below can be found under
event.detail. See Events and Listeners for additional information.Name Type keyK -
ojSelectionAction
-
Triggered when user performs a selection action gesture on a tab. The action gestures include:
- User clicks anywhere in a tab
- User taps anywhere in a tab
- User pressed spacebar or enter key on a tab
Properties:
All of the event payloads listed below can be found under
event.detail. See Events and Listeners for additional information.Name Type previousValueK valueK
Methods
-
getProperty(property) : {any}
-
Retrieves the value of a property or a subproperty.
Parameters:
Name Type Description propertyThe property name to get. Supports dot notation for subproperty access. Returns:
- Type
- any
-
setProperties(properties) : {void}
-
Performs a batch set of properties.
Parameters:
Name Type Description propertiesAn object containing the property and value pairs to set. Returns:
- Type
- void
-
setProperty(property, value) : {void}
-
Sets a property or a single subproperty for complex properties and notifies the component of the change, triggering a corresponding event.
Parameters:
Name Type Description propertyThe property name to set. Supports dot notation for subproperty access. valueThe new value to set the property to. Returns:
- Type
- void