mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
44 lines
1.6 KiB
TypeScript
44 lines
1.6 KiB
TypeScript
declare module "ui/layouts/wrap-layout" {
|
|
import layout = require("ui/layouts/layout");
|
|
import dependencyObservable = require("ui/core/dependency-observable");
|
|
|
|
/**
|
|
* WrapLayout position children in rows or columns depending on orientation property
|
|
* until space is filled and then wraps them on new row or column.
|
|
*/
|
|
class WrapLayout extends layout.Layout {
|
|
|
|
/**
|
|
* Represents the observable property backing the orientation property of each WrapLayout instance.
|
|
*/
|
|
public static orientationProperty: dependencyObservable.Property;
|
|
|
|
/**
|
|
* Represents the observable property backing the itemWidth property of each WrapLayout instance.
|
|
*/
|
|
public static itemWidthProperty: dependencyObservable.Property;
|
|
|
|
/**
|
|
* Represents the observable property backing the itemHeight property of each WrapLayout instance.
|
|
*/
|
|
public static itemHeightProperty: dependencyObservable.Property;
|
|
|
|
/**
|
|
* Gets or sets the flow direction. Default value is horizontal.
|
|
* If orientation is horizontal items are arranged in rows, else items are arranged in columns.
|
|
*/
|
|
orientation: string;
|
|
|
|
/**
|
|
* Gets or sets the width used to measure and layout each child.
|
|
* Default value is Number.NaN which does not restrict children.
|
|
*/
|
|
itemWidth: number;
|
|
|
|
/**
|
|
* Gets or sets the height used to measure and layout each child.
|
|
* Default value is Number.NaN which does not restrict children.
|
|
*/
|
|
itemHeight: number;
|
|
}
|
|
} |