PERGOLA LOGO

pergola.DataGridHeader

System events: YES.

User events and functions: NO.

This class is designed as component for pergola.DataGrid.

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

width

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

height

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

fill

Defined in pergola.presentationAttributes – string.

stroke

Defined in pergola.presentationAttributes – string.

sorted

0 – number.

METHODS

release(evt)

Callback for mouseup on the pergola.dragarea. Manages reorganization of data after column displacement.

select(evt)

Manages column selection.

autoScrollLeft()

Autosrolls left when the mouse is over the autoscroll zone close to the window's right edge.

autoScrollRight()

Autosrolls right when the mouse is over the autoscroll zone close to the window's left edge.

move(evt)

Callback for mousemove event on the pergola.dragarea.

sort()

Invokes this owner's sortAscending() or sortDescending() according to current state.

handleEvent(evt)

build([object])

this inherits the properties specified in object; prototype properties specified in object are overridden. Creates elements and instance properties. 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. Designates the owner object. For this class it can only be a pergola.DataGrid object.

parent

Node. Must be specified. Designates the parent node.

title

String. Must be specified.

type

String. Must be specified.

"font-size"

String. Inherited by the pergola.DataGrid owner object.

container

<g> element.

box

<rect> element.

text

<text> element. The header.

asc

<text> element. The header.

desc

<text> element. The header.

sortTouch

<text> element. The header.