mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-23 17:16:52 +08:00
19 lines
693 B
TypeScript
19 lines
693 B
TypeScript
declare module "ui/layouts/stack-layout" {
|
|
import { LayoutBase, Property } from "ui/layouts/layout-base";
|
|
|
|
/**
|
|
* A Layout that arranges its children horizontally or vertically. The direction can be set by orientation property.
|
|
*/
|
|
class StackLayout extends LayoutBase {
|
|
/**
|
|
* Gets or sets if layout should be horizontal or vertical.
|
|
* The default value is vertical.
|
|
*/
|
|
orientation: "horizontal" | "vertical";
|
|
}
|
|
|
|
/**
|
|
* Represents the observable property backing the orientation property of each StackLayout instance.
|
|
*/
|
|
export const orientationProperty: Property<StackLayout, "horizontal" | "vertical">;
|
|
} |