UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

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