ui/tabber¶
-
class
Tabber
()¶ Extends: UINodeCollection This Class arranges its nodes in an tab bar to display only one at a time.
-
attach
(instance[, leftOf[, rightOf[, activeIndex]]])¶ Attaches an instance.
Note
Instances are expected to have a $tab attribute consisting of a JQuery object containing the DOM node representing its tab.
Arguments: - instance (UINode) – The instance to attach.
- leftOf (UINode|Number) – See
UINodeCollection.attach()
. - rightOf (UINode|Number) – See
UINodeCollection.attach()
. - activeIndex (Number) – The active index for the instance to attach. The higher the index the more recent this tab was shown. The currently shown tab has the highest index. If it is not a valid Number it will be set to the highest index. Negative numbers will be substracted from the currently highest active index, but are clipped at 0.
-
replace
(oldInstance, newInstance)¶ Replaces an instance with a new one.
Arguments:
-
detach
(instance)¶ Detaches a currently attached instance.
Arguments: - instance (UINode) – Instance to detach.
-
getNeighbor
(instance, dir)¶ Get the neighboring instance left/right of the given one.
Arguments: - instance (UINode) – The instance whose neighbor is to be found.
- dir (String) – The direction to look for the neighbor. Valid values are “+” for left or “-“ for right.
Returns: The neighboring instance or undefined if there is no neighbor.
Return type: UINode
-
class-member
validInstanceClass
¶ Value: MainView See
UINodeCollection()
for details.
-