8.7 released—WinterCG Compliance Part 1
Learn more
Represents a UI Repeater component.

Summary

Constructors

constructor

Properties

android
ios
items
itemsLayout
itemTemplate
itemTemplates
knownFunctions
152 properties inherited from CustomLayoutView
Click to expand

Methods

_getDefaultItemContent
_onItemsChanged
_requestRefresh
eachChildView
onLayout
onLoaded
onMeasure
refresh
108 methods inherited from CustomLayoutView
Click to expand

Constructors

constructor

Properties

itemTemplate

itemTemplate: string | Template
Gets or set the item template of the Repeater.

itemTemplates

itemTemplates: string | KeyedTemplate[]
Gets or set the item templates of the Repeater.

items

items: any[] | ItemsSource
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.

itemsLayout

itemsLayout: LayoutBase
Gets or set the items layout of the Repeater. Default value is StackLayout with orientation="vertical".

knownFunctions

Static
knownFunctions: string[]

Accessors

_childrenCount

get _childrenCount(): number

itemTemplateSelector

get itemTemplateSelector(): string | (item: any, index: number, items: any) => string
Returns string | (item: any, index: number, items: any) => string

Methods

_getDefaultItemContent

_getDefaultItemContent(index: number): View
Parameter Default Description
index
number

Returns View

_onItemsChanged

_onItemsChanged(data: ChangedData<any>): void
Parameter Default Description
data

Returns void

_requestRefresh

_requestRefresh(): void

eachChildView

eachChildView(callback: (child: View) => boolean): void
Parameter Default Description
callback
(child: View) => boolean

Returns void

onLayout

onLayout(left: number, top: number, right: number, bottom: number): void
Parameter Default Description
left
number

top
number

right
number

bottom
number

Returns void

onLoaded

onLoaded(): void

onMeasure

onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void
Parameter Default Description
widthMeasureSpec
number

heightMeasureSpec
number

Returns void

refresh

refresh(): void
Forces the Repeater to reload all its items.
Returns void