GridLayoutParameters
Options for the GridLayout.
Extends
Properties
columns?
optionalcolumns:number
Optional fixed number of columns. By default this is set to -1 - meaning not fixed - which will result in the layout making its best effort at drawing a grid of equal width and height
height?
optionalheight:number
Optional fixed height for the layout.
Inherited from
horizontalAlignment?
optionalhorizontalAlignment:GridLayoutHorizontalAlignment
Optional alignment for horizontal placement in cells. Defaults to center.
locationFunction?
optionallocationFunction:LocationFunction
Optional function that, given some vertex, can provide the x/y location of the vertex on the canvas
Inherited from
LayoutParameters.locationFunction
orientation?
optionalorientation:GridLayoutOrientation
Whether to lay out items row first or column first. Additionally, this setting will determine where any extra items are placed if the dataset does not conform to a grid of equal width and height
padding?
optionalpadding:PointXY
Optional padding to put around the elements.
Inherited from
rows?
optionalrows:number
Optional fixed number of rows. By default this is set to -1 - meaning not fixed - which will result in the layout making its best effort at drawing a grid of equal width and height.
sort()?
optionalsort: (a,b) =>number
Optional sort function to run before layout.
Parameters
a
b
Returns
number
verticalAlignment?
optionalverticalAlignment:GridLayoutVerticalAlignment
Optional alignment for vertical placement in cells. Defaults to center.
width?
optionalwidth:number
Optional fixed width for the layout.