Module: alfresco/layout/SlidingTabs

alfresco/layout/SlidingTabs

Author:
  • Dave Draper
License:
Source:

Members

contentFrameWidth :number

The width of content frame. This frame will "clip" all of the content items so that only one item is shown at a time. The overall width of the node containing the tabs will be equal to this value multiplied by the number of tabs.
Type:
  • number
Default Value:
  • 1000
Source:

cssRequirements :object[]

An array of the CSS files to use with this widget.
Type:
  • object[]
Default Value:
  • [{cssFile:"./css/SlidingTabs.css"}]
Source:

tabCount :number

The number of tabs available. This is incremented as tabs are added.
Type:
  • number
Default Value:
  • 0
Source:

tabTemplateString :string

This is the HTML template used for constructing the tab headers.
Type:
  • string
Source:

templateString :String

The HTML template to use for the widget.
Type:
  • String
Source:

Methods

allWidgetsProcessed()

Sets the initially selected and next tabs.
Source:

generateIndexText()

Allows for the text construction of a default index (e.g. an index based off the current tab).
Source:

postCreate()

Source:

processWidget(rootNode, widgetConfig, idx)

Checks that a title has been provided (no title, no tab). Creates a DOM node for the widget and add it to the body Creates a DOM node for the selector and add it as a content item. Increment a tab counter so sizes can be applied
Parameters:
Name Type Description
rootNode Element
widgetConfig object
idx number
Source:

tabSelected()

Handles a tab selector node being clicked.
Source: