Preview 2.0 is now in Public Beta!
Read the Announcement
Note: You are on the beta version of our docs. This is a work in progress and may contain broken links and pages.
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.