Skip to content
Gary Soedarsono edited this page Feb 2, 2015 · 13 revisions

surface.RectGrid

extends: [[PbElement|PbElement]]

A surface that lays out its components in a grid. To use this, add attributes pb-row and pb-col to the element pb-s-rectgrid. These are the number of rows and columns in the grid.

Add the contents of the grid as children of this element. Use pb-row and pb-col attributes on them to indicate their positions in the grid.

new surface.RectGrid()

Methods

createdCallback

createdCallback()

Called when the element is created


get

HTMLElement|null get(Number row, Number col)

Returns the element at the given row and column, or null if not found.

row Number The row index of the element to be returned.
col Number The col index of the element to be returned.

returns HTMLElement|null: The HTML element at the given row and col, or null if not found.


Clone this wiki locally