PERGOLA LOGO

pergola.Tab

System events: YES.

User events and functions: YES.

System component. This class is specifically designed for pergola.Panel with tabs.

Listed: class properties/methods; prototype properties and methods; instance properties. Prototype properties and methods inherited by the Class superclass are not listed.

class

None

prototype

PROPERTIES

parent

pergola.user. Overrides by Panel instances.

"font-size"

Defined in pergola.presentationAttributes – string or number (user space units).

width

Defined in pergola.presentationAttributes – number (user space units).

height

Defined in pergola.presentationAttributes – number (user space units).

fill

Defined in pergola.presentationAttributes – string.

"fill-opacity"

Defined in pergola.presentationAttributes – string or number.

hasVisualEffects

false – boolean.

active

false – boolean; one, and one only of the panel tabs must override this property (true).

METHODS

rollover(evt)

Overrides the inherited rollover method.

handleEvent(evt)

Manages the state of this and this owner's sibling tabs. Note: If this fn is specified in the initialization object, it is invoked through the event handler of this owner's OK button.

build(object)

this inherits the properties specified in object; prototype properties specified in object are overridden. Creates elements. Returns this.

instance

name

String. If not passed to the constructor, gets a generated XML name (Class).

id

String. The return value of this name.toXML(). This container ID. Used as prefix where other elements' IDs are attributed.

owner

Must be specified in the initialization object; designates the owner object (pergola.Window).

active

If active is overridden in the initialization object, the active tab is this. Note: at least one tab, and one only, must override the active property.

title

String. The text of this text element

container

<g> element.

button

<path> element; the activation label tab.

text

<text> element, the tab's label.

pane

Object with container (<g> element), width (number), and height (number) properties; this pane.container is the parent node for this layout or this contains. The example panelWithTabs.html shows how to use these properties to lay out contents.

layout

If specified, an initialization object for the pergola.Layout class (contains must not be specified).

contains

If specified, node or function (layout must not be specified).

fn

If specified, callback function.