mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-23 00:52:33 +08:00

* Fix a bunch of typo's and minor errors in TypeScript definition files. * Implemented the requested change by @hshristov
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
/**
|
|
* @module "ui/layouts/dock-layout"
|
|
*/ /** */
|
|
|
|
import { LayoutBase, View, Property } from "../layout-base";
|
|
|
|
/**
|
|
* A Layout that arranges its children at its outer edges, and allows its last child to take up the remaining space.
|
|
*/
|
|
export class DockLayout extends LayoutBase {
|
|
/**
|
|
* Gets the value of the Dock property from a given View.
|
|
*/
|
|
static getDock(view: View): Dock;
|
|
|
|
/**
|
|
* Sets the value of the Dock property from a given View.
|
|
*/
|
|
static setDock(view: View, value: Dock): void;
|
|
|
|
/**
|
|
* Gets or sets a value that indicates whether the last child element within a DockLayout stretches to fill the remaining available space.
|
|
* The default value is true.
|
|
*/
|
|
stretchLastChild: boolean;
|
|
}
|
|
|
|
export type Dock = "left" | "top" | "right" | "bottom";
|
|
/**
|
|
* Represents the observable property backing the dock property.
|
|
*/
|
|
export const dockProperty: Property<DockLayout, Dock>;
|
|
|
|
/**
|
|
* Represents the observable property backing the stretchLastChild property of each DockLayout instance.
|
|
*/
|
|
export const stretchLastChildProperty: Property<DockLayout, boolean>; |