mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
20 lines
662 B
TypeScript
20 lines
662 B
TypeScript
import { LayoutBase } from '../layout-base';
|
|
import { Property } from '../../core/properties';
|
|
import { CoreTypes } from '../../../core-types';
|
|
|
|
/**
|
|
* 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: CoreTypes.OrientationType;
|
|
}
|
|
|
|
/**
|
|
* Represents the observable property backing the orientation property of each StackLayout instance.
|
|
*/
|
|
export const orientationProperty: Property<StackLayout, CoreTypes.OrientationType>;
|