import { LayoutBase } from '../layouts/layout-base'; import { View, CustomLayoutView, Template, KeyedTemplate } from '../core/view'; import { Property } from '../core/properties'; import { ChangedData } from '../../data/observable-array'; export interface ItemsSource { length: number; getItem(index: number): any; } /** * Represents a UI Repeater component. */ export declare class Repeater extends CustomLayoutView { static knownFunctions: string[]; private _isDirty; private _itemTemplateSelector; private _itemTemplateSelectorBindable; ios: any; android: any; constructor(); onLoaded(): void; /** * Gets or set the items collection of the Repeater. * The items property can be set to an array or an object defining length and getItem(index) method. */ items: any[] | ItemsSource; /** * Gets or set the item template of the Repeater. */ itemTemplate: string | Template; /** * Gets or set the item templates of the Repeater. */ itemTemplates: string | Array; /** * Gets or set the items layout of the Repeater. Default value is StackLayout with orientation="vertical". */ itemsLayout: LayoutBase; get itemTemplateSelector(): string | ((item: any, index: number, items: any) => string); set itemTemplateSelector(value: string | ((item: any, index: number, items: any) => string)); _requestRefresh(): void; /** * Forces the Repeater to reload all its items. */ refresh(): void; _onItemsChanged(data: ChangedData): void; _getDefaultItemContent(index: number): View; private _getDataItem; get _childrenCount(): number; eachChildView(callback: (child: View) => boolean): void; onLayout(left: number, top: number, right: number, bottom: number): void; onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; } /** * Represents the item template property of each Repeater instance. */ export declare const itemTemplateProperty: Property; /** * Represents the items template property of each Repeater instance. */ export declare const itemTemplatesProperty: Property; /** * Represents the property backing the items property of each Repeater instance. */ export declare const itemsProperty: Property; export declare const itemsLayoutProperty: Property;