8.7 released—WinterCG Compliance Part 1
Learn more
ItemSpec
Defines row/column specific properties that apply to GridLayout elements.

Summary

Constructors

constructor

new ItemSpec(value: number, type: GridUnitType): ItemSpec
Parameter Default Description
value
number

type

Returns ItemSpec

Properties

actualLength

actualLength: number
Gets the actual length of an ItemSpec.

gridUnitType

gridUnitType: GridUnitType
Returns unit type of this ItemSpec instance.

isAbsolute

isAbsolute: boolean
Returns true if this ItemSpec instance holds an absolute (pixel) value.

isAuto

isAuto: boolean
Returns true if this GridLength instance is automatic (not specified).

isStar

isStar: boolean
Returns true if this ItemSpec instance holds weighted proportion of available space.

value

value: number
Returns value part of this ItemSpec instance.