APIs

Show:
Module: ember-flexberry

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 Object

    Action's event object.

    • tabName String

      Name of clicked tab

    • changed Boolean

      Flag: whether tab was changed. True if yes, False if not, Null if there is no active tab

    • originalEvent Object

      jQuery 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 String

    Component's CSS-class names prefix ('flexberry-tab-bar').

  • wrapper String

    Component's wrapping

    CSS-class name ('flexberry-tab-bar').

  • tab String

    Component's inner CSS-class name ('flexberry-tab-bar-tab').

  • tabIcon String

    Component's inner

items

Array

Contains items to be displayed in tab bar

Default: null

Example:

items: [{selector: 'tab1', caption: 'Tab one', active: true }, {selector: 'tab2', caption: 'Tab two'}]

prevTab

Unknown

Contains name of previous data-tab

tabs

Array

Contains items that will be displayed in tab bar