FlexberryTabBarComponent Class
Item Index
Properties
Methods
actions.change
-
currentTab -
event
Handles tab 'click' action.
Parameters:
normalizeWheel
()
Enables scroll wheel for dragscroll. Based on code by @miorel + @pieterv of Facebook. github.com/facebook/fixed-data-table/blob/master/src/vendor_upstream/dom/normalizeWheel.js
sendingActions.change
-
e
Component's action invoking when tab was clicked and it's 'active' state changed.
Parameters:
-
eObjectAction's event object.
-
tabNameStringName of clicked tab
-
changedBooleanFlag: whether tab was changed. True if yes, False if not, Null if there is no active tab
-
originalEventObjectjQuery event object which describes inner input's 'change' event.
-
setDropdownVisibility
()
Checks if sum of tabs width is greater than tab container. If true - dropdown becomes visible. If false - dropdown dissapears.
Properties
dropdownDomString
Unknown
String with dropdown selector for working with jQuery
flexberryClassNames
Object
static
Component's CSS-classes names. JSON-object containing string constants with CSS-classes names related to component's .hbs markup elements.
Sub-properties:
-
prefixStringComponent's CSS-class names prefix ('flexberry-tab-bar').
-
wrapperStringComponent's wrapping
CSS-class name ('flexberry-tab-bar').tabStringComponent's inner CSS-class name ('flexberry-tab-bar-tab').
tabIconStringComponent's inner
ArrayitemsContains items to be displayed in tab bar
Default: null
Example:
items: [{selector: 'tab1', caption: 'Tab one', active: true }, {selector: 'tab2', caption: 'Tab two'}]
UnknownprevTabContains name of previous data-tab
Flexberry Documentation