itemSize([width_or_both], [height])
Class: List.
Description:
Sets the size of each item in the list.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
number | object |
Width of items as a number, same width and height as a number, or size Object to set both width and height (see examples below). |
|
|
number |
Height of items. |
Returns:
Returns this component instance if at least one argument is provided, otherwise returns the current item size.
Type: object | List
Examples:
itemSize(null) - Resets item size to default (auto size).
itemSize(100) - Both width and height are set to 100px.
itemSize(100, 150) - width 100, height 150
itemSize({width:100, height:150})
itemSize() - retrieves size and returns {width:number, height:number} or NULL if it was not previously set.
