ui/tabber

class Tabber()
Extends:UINodeCollection

This Class arranges its nodes in an tab bar to display only one at a time.

activeInstance
Type:UINode|null
Default:null

Holds the currently active instance of the Tabber()

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:
  • oldInstance (UINode) – Instance to replace.
  • newInstance (UINode) – Instance to take the place.
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-membervalidInstanceClass
Value:MainView

See UINodeCollection() for details.