mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00

Fix for types - isString and isNumber. Modified several tests to pass on VS Emulator for Android. Fix page background to be applied in onLoaded method. Enhancements for dependency-observable - it is now possible to add defaultValueGetter function to extract default value for a property. It can also be cached or not. Remove android_constants because they are per theme and we cannot use them safely. Fix for SearchBar reseColorProperty method.
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
declare module "ui/styling/style-property" {
|
|
import definition = require("ui/styling");
|
|
import observable = require("ui/core/dependency-observable");
|
|
|
|
export function getShorthandPairs(name: string, value: any): Array<KeyValuePair<Property, any>>;
|
|
|
|
export function registerShorthandCallback(name: string, callback: (value: any) => Array<KeyValuePair<Property, any>>): void;
|
|
|
|
export function getPropertyByName(name: string): Property;
|
|
|
|
export function getPropertyByCssName(name: string): Property;
|
|
|
|
export function eachProperty(callback: (property: Property) => void);
|
|
|
|
export function eachInheritableProperty(callback: (property: Property) => void);
|
|
|
|
export class Property extends observable.Property implements definition.Property {
|
|
|
|
constructor(name: string, cssName: string, metadata: observable.PropertyMetadata, valueConverter?: (value: any) => any);
|
|
|
|
cssName: string;
|
|
}
|
|
|
|
export interface KeyValuePair<K, V> {
|
|
property: K;
|
|
value: V;
|
|
}
|
|
} |