PERGOLA LOGO

pergola.DialogButton

System events: YES.

User events and functions: YES.

System component. Subclass of pergola.Button; inherits pergola.Button.prototype.

Example in panel examples, or orphan examples in progress.

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.

width

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

height

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

rx

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

See other pergola.Button prototype properties.

METHODS

build(object)

Overrides the superclass (pergola.Button) build() method. this inherits the properties specified in object. Prototype properties specified in object are overridden. Creates elements. Returns this.

If object specifies owner, a "mousedown" event is registered on this button with this owner. Note: object must define at least one of: owner; fn.

See other pergola.Button prototype methods.

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

If specified, designates the owner object.

container

<g> element.

mask

<rect> element.

button

<rect> element.

text

<text> element.

ev

If specified (event type string, or array of event type strings), the event type(s) is/are registered on this button, with this.

fn

If specified, callback function for this ev. Must be specified if this ev is specified.