mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
21 lines
639 B
TypeScript
21 lines
639 B
TypeScript
import { LayoutBase } from '../layout-base';
|
|
import { Property } from '../../core/properties';
|
|
|
|
/**
|
|
* A Layout that arranges its children horizontally or vertically. The direction can be set by orientation property.
|
|
*/
|
|
export class StackLayout extends LayoutBase {
|
|
/**
|
|
* Gets or sets if layout should be horizontal or vertical.
|
|
* The default value is vertical.
|
|
*/
|
|
orientation: Orientation;
|
|
}
|
|
|
|
export type Orientation = 'horizontal' | 'vertical';
|
|
|
|
/**
|
|
* Represents the observable property backing the orientation property of each StackLayout instance.
|
|
*/
|
|
export const orientationProperty: Property<StackLayout, Orientation>;
|