API Docs for:
Show:

GSDispositionView Class

A disposition view lets the user select the position, size and properties of one or multiple graphical cells. A cell can have an image associated or just a color. Depending on the settings the user can drag and move the cells and can resize them. A double-click opens custom cell-properties if configured.

Properties

allowCellResize

Boolean

Indicates if the user can resize a cell.

BindingSlot.backgrounds.[index]

Image

Sets the image of the specified background-layer.

BindingSlot.cells.[index]

Object

Sets the binding-value to

BindingSlot.zoom

Number

Sets the zoom-level for all cells. Its a percentage value.

cellColor

Object

General cell color. This color is used if a cell doesn't have an own color defined.

cellPropertiesDialog

DialogDescriptor

A dialog used for the cell-properties if a cell is double-clicked. The data is automatically written to the cell object.

cells

Object

An array of predefined cells.

cells[cell].color

Object

The cell's color. Must be a color object like: { red: 255, green: 255, blue: 255, alpha: 255 }

cells[cell].size

Object

The cell's size. Must be a size object like: { width: 100, height: 100 }

cells[cell].x

Number

The x-coordinate of the cell's position.

cells[cell].y

Number

The y-coordinate of the cell's position.

dynamic

String

Indicates if the view is dynamic or static. A dynamic view allows add/remove cells at runtime like through buttons or other kind of controls.

storeMode

String

Controls how the data is stored. If single only the first cell will be directly stored. If multiple an array of all cells will be stored.