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:
-
e
ObjectAction's event object.
-
tabName
StringName of clicked tab
-
changed
BooleanFlag: whether tab was changed. True if yes, False if not, Null if there is no active tab
-
originalEvent
ObjectjQuery 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:
-
prefix
StringComponent's CSS-class names prefix ('flexberry-tab-bar').
-
wrapper
StringComponent's wrapping
CSS-class name ('flexberry-tab-bar').tab
StringComponent's inner CSS-class name ('flexberry-tab-bar-tab').
tabIcon
StringComponent's inner
Arrayitems
Contains items to be displayed in tab bar
Default: null
Example:
items: [{selector: 'tab1', caption: 'Tab one', active: true }, {selector: 'tab2', caption: 'Tab two'}]
UnknownprevTab
Contains name of previous data-tab