You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/ui/list-view/index.d.ts
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,12 @@ export class ListView extends View {
30
30
* @nsEvent itemLoading
31
31
*/
32
32
publicstaticloadMoreItemsEvent: string;
33
+
/**
34
+
* String value used when hooking to searchChange event.
35
+
*
36
+
* @nsEvent {SearchEventData} searchChange
37
+
*/
38
+
publicstaticsearchChangeEvent: string;
33
39
34
40
/**
35
41
* Gets the native [android widget](http://developer.android.com/reference/android/widget/ListView.html) that represents the user interface for this component. Valid only when running on Android OS.
@@ -139,6 +145,14 @@ export class ListView extends View {
139
145
*/
140
146
sectioned: boolean;
141
147
148
+
/**
149
+
* Gets or sets a value indicating whether the ListView should show a search bar.
150
+
* When enabled on iOS, uses native UISearchController for optimal performance.
151
+
*
152
+
* @nsProperty
153
+
*/
154
+
showSearch: boolean;
155
+
142
156
/**
143
157
* Forces the ListView to reload all its items.
144
158
*/
@@ -195,6 +209,11 @@ export class ListView extends View {
195
209
* Raised when the ListView is scrolled so that its last item is visible.
* Event data containing information for the search text change event.
246
+
*/
247
+
exportinterfaceSearchEventDataextendsEventData{
248
+
/**
249
+
* The current search text value.
250
+
*/
251
+
text: string;
252
+
253
+
/**
254
+
* Gets the native [iOS UISearchController](https://developer.apple.com/documentation/uikit/uisearchcontroller) that represents the search controller. Valid only when running on iOS.
255
+
*/
256
+
ios?: any/* UISearchController */;
257
+
258
+
/**
259
+
* Gets the native Android search view. Valid only when running on Android OS.
0 commit comments