PERGOLA LOGO

pergola.MenuList

System events: YES.

User events and functions: NO.

System component. This class is specifically designed as component for the pergola.Menu class. You don't need to instantiate this class, or invoke any of its methods explicitly.

Examples in menu and window examples (maps (complex), or window (simple)).

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. Must be overridden to designate a predefined container of this owner (pergola.Menu).

height

0 – number (user space units).

margin

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

advanceY

0 – number (user space units); updated on the addition of each menu item.

filter

Defined in pergola.presentationAttributes – string (URI).

METHODS

close(evt)

Closes submenus and collapses this container.

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.Menu).

container

<g> element.

Must be specified in the initialization object; designates the common ascendant pergola.Menu object of first and subsequent (submenus) generations of MenuItem objects.

items

Must be specified in the initialization object (as defined by Menu or MenuItem with submenu). An object defining MenuItem objects.

x

Must be specified in the initialization object; computed offset x number.

y

Must be specified in the initialization object; computed offset y number.

"font-family"

Must be specified in the initialization object, the value inherited from this menuObject by all descendants. Used for layout geometry.

"font-size"

Must be specified in the initialization object, the value inherited from this menuObject by all descendants. Used for layout geometry.

Collection of properties; new pergola.MenuItem instance for each property in items.