Skip to content

Latest commit

Β 

History

History
342 lines (215 loc) Β· 5.44 KB

Property.md

File metadata and controls

342 lines (215 loc) Β· 5.44 KB
title Property
titleTemplate title - API / NativeScript
contributors false

Defined in: ui/core/properties/index.ts

Extended by

Type Parameters

Type Parameter
T extends ViewBase
U

Implements

  • TypedPropertyDescriptor<U>
  • Property<T, U>

Constructors

Constructor

new Property<T, U>(options: PropertyOptions<T, U>): Property<T, U>;

Defined in: ui/core/properties/index.ts

Parameters

Parameter Type
options PropertyOptions<T, U>

Returns

Property<T, U>

Properties

configurable

configurable: boolean;

Defined in: ui/core/properties/index.ts

Implementation of

TypedPropertyDescriptor.configurable

defaultValue

readonly defaultValue: U;

Defined in: ui/core/properties/index.ts

Implementation of

Property.defaultValue

defaultValueKey

readonly defaultValueKey: symbol;

Defined in: ui/core/properties/index.ts

Implementation of

Property.defaultValueKey

enumerable

enumerable: boolean;

Defined in: ui/core/properties/index.ts

Implementation of

TypedPropertyDescriptor.enumerable

get

get: () => U;

Defined in: ui/core/properties/index.ts

Returns

U

Implementation of

TypedPropertyDescriptor.get

getDefault

readonly getDefault: symbol;

Defined in: ui/core/properties/index.ts

Implementation of

Property.getDefault

isStyleProperty

isStyleProperty: boolean;

Defined in: ui/core/properties/index.ts

Implementation of

Property.isStyleProperty

key

readonly key: symbol;

Defined in: ui/core/properties/index.ts

Implementation of

Property.key

name

readonly name: string;

Defined in: ui/core/properties/index.ts

Implementation of

Property.name

nativeValueChange

readonly nativeValueChange: (owner: T, value: U) => void;

Defined in: ui/core/properties/index.ts

Parameters

Parameter Type
owner T
value U

Returns

void

Implementation of

Property.nativeValueChange

overrideHandlers

overrideHandlers: (options: PropertyOptions<T, U>) => void;

Defined in: ui/core/properties/index.ts

Parameters

Parameter Type
options PropertyOptions<T, U>

Returns

void

Implementation of

Property.overrideHandlers

set

set: (value: U) => void;

Defined in: ui/core/properties/index.ts

Parameters

Parameter Type
value U

Returns

void

Implementation of

TypedPropertyDescriptor.set

setNative

readonly setNative: symbol;

Defined in: ui/core/properties/index.ts

Implementation of

Property.setNative

Methods

isSet()

isSet(instance: T): boolean;

Defined in: ui/core/properties/index.ts

Parameters

Parameter Type
instance T

Returns

boolean

Implementation of

Property.isSet

register()

register(cls: {
  prototype: T;
}): void;

Defined in: ui/core/properties/index.ts

Parameters

Parameter Type
cls { prototype: T; }
cls.prototype T

Returns

void

Implementation of

Property.register