UNPKG

1.18 kBTypeScriptView Raw
1import { LayoutBase } from '../layout-base';
2import { Property } from '../../core/properties';
3import { View } from '../../core/view';
4import { Length } from '../../styling/style-properties';
5import { CoreTypes } from '../../../core-types';
6
7/**
8 * A layout that lets you specify exact locations (left/top coordinates) of its children.
9 */
10export class AbsoluteLayout extends LayoutBase {
11 /**
12 * Gets the value of the Left property from a given View.
13 */
14 static getLeft(view: View): CoreTypes.LengthType;
15
16 /**
17 * Sets the value of the Left property from a given View.
18 */
19 static setLeft(view: View, value: CoreTypes.LengthType): void;
20
21 /**
22 * Gets the value of the Top property from a given View.
23 */
24 static getTop(view: View): CoreTypes.LengthType;
25
26 /**
27 * Sets the value of the Top property from a given View.
28 */
29 static setTop(view: View, value: CoreTypes.LengthType): void;
30}
31
32/**
33 * Represents the observable property backing the left property.
34 */
35export const leftProperty: Property<View, CoreTypes.LengthType>;
36
37/**
38 * Represents the observable property backing the top property.
39 */
40export const topProperty: Property<View, CoreTypes.LengthType>;