Files
NativeScript/packages/core/ui/layouts/stack-layout/index.d.ts
Nathan Walker 21da31562c chore: Enums > CoreTypes
Cleanup type symbol usage by consolidating to manage in one spot. This makes them easier to use as well by providing a single rollup of all the common type symbol's used throughout core.
2021-04-06 11:18:36 -07:00

20 lines
659 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>;