-
Notifications
You must be signed in to change notification settings - Fork 53
wcLayout
Handles the contents of a panel.
You should not be constructing these by hand, every panel should
construct their own.
$container
Type: JQuery collection object
The container element for the layout.
parent
Type: wcPanel object
The panel that contains this layout.
Adds a new DOM element into the layout.
item
Type: DOM Element, JQuery collection object, or JQuery selector string
An element to insert into the layout.
x, y
Type: Number
An optional X and Y position to place the item in the layout's table grid. If the parameters are not supplied, (0, 0) is used.
w, h
An optional width and height value that determine the number of table grid cells to merge together for this item. If the parameters are not supplied, only one cell is used.
Clears the contents of the layout.
Generally for debugging purposes, this will render dotted lines around
each layout grid cell to help visuallize the current configuration of cells.
enabled
Type: Boolean
Whether the cell grid should be visible.
Version: Latest Source Only
Gets, or Sets the spacing size between layout grid cells.
size
Type: Integer
If supplied, will assign a new spacing size.
Version: Latest Source Only
Alternates the color of each row in the grid.
enabled
Type: Boolean
If supplied, sets whether each row in the grid should alternate their color.
Retrieves the main scene DOM element used to contain the layout.