Skip to content

Latest commit

 

History

History
118 lines (73 loc) · 2.71 KB

ItemSpec.md

File metadata and controls

118 lines (73 loc) · 2.71 KB
title ItemSpec
titleTemplate title - API / NativeScript
description Defines row/column specific properties that apply to GridLayout elements.
contributors false

Defined in: ui/layouts/grid-layout/index.d.ts:8

Defines row/column specific properties that apply to GridLayout elements.

Constructors

Constructor

new ItemSpec(): ItemSpec;

Defined in: ui/layouts/grid-layout/index.d.ts:9

Returns

ItemSpec

Constructor

new ItemSpec(value: number, type: GridUnitType): ItemSpec;

Defined in: ui/layouts/grid-layout/index.d.ts:10

Parameters

Parameter Type
value number
type GridUnitType

Returns

ItemSpec

Properties

actualLength

actualLength: number;

Defined in: ui/layouts/grid-layout/index.d.ts:15

Gets the actual length of an ItemSpec.


gridUnitType

gridUnitType: GridUnitType;

Defined in: ui/layouts/grid-layout/index.d.ts:20

Returns unit type of this ItemSpec instance.


isAbsolute

isAbsolute: boolean;

Defined in: ui/layouts/grid-layout/index.d.ts:26

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


isAuto

isAuto: boolean;

Defined in: ui/layouts/grid-layout/index.d.ts:32

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


isStar

isStar: boolean;

Defined in: ui/layouts/grid-layout/index.d.ts:38

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


value

value: number;

Defined in: ui/layouts/grid-layout/index.d.ts:43

Returns value part of this ItemSpec instance.