UNPKG

@nativescript/core

Version:

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

24 lines (23 loc) 854 B
import { GridLayoutBase, ItemSpec as ItemSpecBase } from './grid-layout-common'; export * from './grid-layout-common'; interface ItemSpec extends ItemSpecBase { toJSON(): { value: number; type: number; }; } export declare class GridLayout extends GridLayoutBase { nativeViewProtected: org.nativescript.widgets.GridLayout; createNativeView(): org.nativescript.widgets.GridLayout; initNativeView(): void; resetNativeView(): void; _onRowAdded(itemSpec: ItemSpec): void; addRows(itemSpecs: ItemSpec[]): void; addColumns(itemSpecs: ItemSpec[]): void; _onColumnAdded(itemSpec: ItemSpec): void; removeColumns(): void; removeRows(): void; _onRowRemoved(itemSpec: ItemSpec, index: number): void; _onColumnRemoved(itemSpec: ItemSpec, index: number): void; protected invalidate(): void; }