Files
NativeScript/nativescript-core/ui/layouts/absolute-layout/index.d.ts
Nathan Walker da3c0b973d chore: format
2020-07-11 11:01:40 -07:00

40 lines
1.0 KiB
TypeScript

import { LayoutBase } from "../layout-base";
import { Property } from "../../core/properties";
import { View } from "../../core/view";
import { Length } from "../../styling/style-properties";
/**
* A layout that lets you specify exact locations (left/top coordinates) of its children.
*/
export class AbsoluteLayout extends LayoutBase {
/**
* Gets the value of the Left property from a given View.
*/
static getLeft(view: View): Length;
/**
* Sets the value of the Left property from a given View.
*/
static setLeft(view: View, value: Length): void;
/**
* Gets the value of the Top property from a given View.
*/
static getTop(view: View): Length;
/**
* Sets the value of the Top property from a given View.
*/
static setTop(view: View, value: Length): void;
}
/**
* Represents the observable property backing the left property.
*/
export const leftProperty: Property<View, Length>;
/**
* Represents the observable property backing the top property.
*/
export const topProperty: Property<View, Length>;