mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
21 lines
744 B
TypeScript
21 lines
744 B
TypeScript
declare module "ui/layouts/stack-layout" {
|
|
import layout = require("ui/layouts/layout-base");
|
|
import dependencyObservable = require("ui/core/dependency-observable");
|
|
|
|
/**
|
|
* A Layout that arranges its children horizontally or vertically. The direction can be set by orientation property.
|
|
*/
|
|
class StackLayout extends layout.LayoutBase {
|
|
|
|
/**
|
|
* Represents the observable property backing the orientation property of each StackLayout instance.
|
|
*/
|
|
public static orientationProperty: dependencyObservable.Property;
|
|
|
|
/**
|
|
* Gets or sets if layout should be horizontal or vertical.
|
|
* The default value is vertical.
|
|
*/
|
|
orientation: string;
|
|
}
|
|
} |