list.d.ts 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. /*!
  2. * devextreme-angular
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. *
  8. * This software may be modified and distributed under the terms
  9. * of the MIT license. See the LICENSE file in the root of the project for details.
  10. *
  11. * https://github.com/DevExpress/devextreme-angular
  12. */
  13. import { TransferState } from '@angular/platform-browser';
  14. import { ElementRef, NgZone, OnDestroy, EventEmitter, OnChanges, DoCheck, SimpleChanges, QueryList } from '@angular/core';
  15. import DevExpress from 'devextreme/bundles/dx.all';
  16. import DxList from 'devextreme/ui/list';
  17. import { DxComponent } from '../core/component';
  18. import { DxTemplateHost } from '../core/template-host';
  19. import { NestedOptionHost } from '../core/nested-option';
  20. import { WatcherHelper } from '../core/watcher-helper';
  21. import { IterableDifferHelper } from '../core/iterable-differ-helper';
  22. import { DxiItemComponent } from './nested/item-dxi';
  23. import { DxiMenuItemComponent } from './nested/menu-item-dxi';
  24. /**
  25. * The List is a widget that represents a collection of items in a scrollable list.
  26. */
  27. export declare class DxListComponent extends DxComponent implements OnDestroy, OnChanges, DoCheck {
  28. private _watcherHelper;
  29. private _idh;
  30. instance: DxList;
  31. /**
  32. * Specifies the shortcut key that sets focus on the widget.
  33. */
  34. accessKey: string;
  35. /**
  36. * Specifies whether or not the widget changes its state when interacting with a user.
  37. */
  38. activeStateEnabled: boolean;
  39. /**
  40. * Specifies whether or not an end user can delete list items.
  41. */
  42. allowItemDeleting: boolean;
  43. /**
  44. * Specifies whether a user can reorder list items. Grouped items cannot be moved from one group to another.
  45. */
  46. allowItemReordering: boolean;
  47. /**
  48. * A Boolean value specifying whether to enable or disable the bounce-back effect.
  49. */
  50. bounceEnabled: boolean;
  51. /**
  52. * Specifies whether or not an end-user can collapse groups.
  53. */
  54. collapsibleGroups: boolean;
  55. /**
  56. * Binds the widget to data.
  57. */
  58. dataSource: DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<string | DevExpress.ui.CollectionWidgetItem>;
  59. /**
  60. * Specifies whether the widget responds to user interaction.
  61. */
  62. disabled: boolean;
  63. /**
  64. * Specifies the data field whose values should be displayed. Defaults to "text" when the data source contains objects.
  65. */
  66. displayExpr: Function | string;
  67. /**
  68. * Specifies the attributes to be attached to the widget's root element.
  69. */
  70. elementAttr: any;
  71. /**
  72. * Specifies whether the widget can be focused using keyboard navigation.
  73. */
  74. focusStateEnabled: boolean;
  75. /**
  76. * Specifies whether data items should be grouped.
  77. */
  78. grouped: boolean;
  79. /**
  80. * Specifies a custom template for group captions.
  81. */
  82. groupTemplate: any;
  83. /**
  84. * Specifies the widget's height.
  85. */
  86. height: number | Function | string;
  87. /**
  88. * Specifies text for a hint that appears when a user pauses on the widget.
  89. */
  90. hint: string;
  91. /**
  92. * Specifies whether the widget changes its state when a user pauses on it.
  93. */
  94. hoverStateEnabled: boolean;
  95. /**
  96. * Specifies whether or not to show the loading panel when the DataSource bound to the widget is loading data.
  97. */
  98. indicateLoading: boolean;
  99. /**
  100. * Specifies the way a user can delete items from the list.
  101. */
  102. itemDeleteMode: string;
  103. /**
  104. * The time period in milliseconds before the onItemHold event is raised.
  105. */
  106. itemHoldTimeout: number;
  107. /**
  108. * An array of items displayed by the widget.
  109. */
  110. items: Array<string | any | {
  111. badge?: string;
  112. disabled?: boolean;
  113. html?: string;
  114. icon?: string;
  115. key?: string;
  116. showChevron?: boolean;
  117. template?: any;
  118. text?: string;
  119. visible?: boolean;
  120. }>;
  121. /**
  122. * Specifies a custom template for items.
  123. */
  124. itemTemplate: any;
  125. /**
  126. * Specifies which data field provides keys for widget items.
  127. */
  128. keyExpr: Function | string;
  129. /**
  130. * Specifies the array of items for a context menu called for a list item.
  131. */
  132. menuItems: Array<any | {
  133. action?: Function;
  134. text?: string;
  135. }>;
  136. /**
  137. * Specifies whether an item context menu is shown when a user holds or swipes an item.
  138. */
  139. menuMode: string;
  140. /**
  141. * The text displayed on the button used to load the next page from the data source.
  142. */
  143. nextButtonText: string;
  144. /**
  145. * The text or HTML markup displayed by the widget if the item collection is empty.
  146. */
  147. noDataText: string;
  148. /**
  149. * Specifies the text shown in the pullDown panel, which is displayed when the list is scrolled to the bottom.
  150. */
  151. pageLoadingText: string;
  152. /**
  153. * Specifies whether the next page is loaded when a user scrolls the widget to the bottom or when the "next" button is clicked.
  154. */
  155. pageLoadMode: string;
  156. /**
  157. * Specifies the text displayed in the pullDown panel when the list is pulled below the refresh threshold.
  158. */
  159. pulledDownText: string;
  160. /**
  161. * Specifies the text shown in the pullDown panel while the list is being pulled down to the refresh threshold.
  162. */
  163. pullingDownText: string;
  164. /**
  165. * A Boolean value specifying whether or not the widget supports the "pull down to refresh" gesture.
  166. */
  167. pullRefreshEnabled: boolean;
  168. /**
  169. * Specifies the text displayed in the pullDown panel while the list is being refreshed.
  170. */
  171. refreshingText: string;
  172. /**
  173. * Specifies whether to repaint only those elements whose data changed.
  174. */
  175. repaintChangesOnly: boolean;
  176. /**
  177. * Switches the widget to a right-to-left representation.
  178. */
  179. rtlEnabled: boolean;
  180. /**
  181. * A Boolean value specifying if the list is scrolled by content.
  182. */
  183. scrollByContent: boolean;
  184. /**
  185. * A Boolean value specifying if the list is scrolled using the scrollbar.
  186. */
  187. scrollByThumb: boolean;
  188. /**
  189. * A Boolean value specifying whether to enable or disable list scrolling.
  190. */
  191. scrollingEnabled: boolean;
  192. /**
  193. * Configures the search panel.
  194. */
  195. searchEditorOptions: DevExpress.ui.dxTextBoxOptions;
  196. /**
  197. * Specifies whether the search panel is visible.
  198. */
  199. searchEnabled: boolean;
  200. /**
  201. * Specifies a data object's field name or an expression whose value is compared to the search string.
  202. */
  203. searchExpr: Function | Array<Function>;
  204. /**
  205. * Specifies a comparison operation used to search widget items.
  206. */
  207. searchMode: string;
  208. /**
  209. * Specifies a delay in milliseconds between when a user finishes typing, and the search is executed.
  210. */
  211. searchTimeout: number;
  212. /**
  213. * Specifies the current search string.
  214. */
  215. searchValue: string;
  216. /**
  217. * Specifies the mode in which all items are selected.
  218. */
  219. selectAllMode: string;
  220. /**
  221. * Specifies an array of currently selected item keys.
  222. */
  223. selectedItemKeys: Array<any>;
  224. /**
  225. * An array of currently selected item objects.
  226. */
  227. selectedItems: Array<any>;
  228. /**
  229. * Specifies item selection mode.
  230. */
  231. selectionMode: string;
  232. /**
  233. * Specifies when the widget shows the scrollbar.
  234. */
  235. showScrollbar: string;
  236. /**
  237. * Specifies whether or not to display controls used to select list items.
  238. */
  239. showSelectionControls: boolean;
  240. /**
  241. * Specifies the number of the element when the Tab key is used for navigating.
  242. */
  243. tabIndex: number;
  244. /**
  245. * Specifies whether or not the widget uses native scrolling.
  246. */
  247. useNativeScrolling: boolean;
  248. /**
  249. * Specifies whether the widget is visible.
  250. */
  251. visible: boolean;
  252. /**
  253. * Specifies the widget's width.
  254. */
  255. width: number | Function | string;
  256. /**
  257. * A function that is executed when the widget's content is ready and each time the content is changed.
  258. */
  259. onContentReady: EventEmitter<any>;
  260. /**
  261. * A function that is executed before the widget is disposed of.
  262. */
  263. onDisposing: EventEmitter<any>;
  264. /**
  265. * A function that is executed when a group element is rendered.
  266. */
  267. onGroupRendered: EventEmitter<any>;
  268. /**
  269. * A function used in JavaScript frameworks to save the widget instance.
  270. */
  271. onInitialized: EventEmitter<any>;
  272. /**
  273. * A function that is executed when a collection item is clicked or tapped.
  274. */
  275. onItemClick: EventEmitter<any>;
  276. /**
  277. * A function that is executed when a collection item is right-clicked or pressed.
  278. */
  279. onItemContextMenu: EventEmitter<any>;
  280. /**
  281. * A function that is executed after a list item is deleted from the data source.
  282. */
  283. onItemDeleted: EventEmitter<any>;
  284. /**
  285. * A function that is executed before a collection item is deleted from the data source.
  286. */
  287. onItemDeleting: EventEmitter<any>;
  288. /**
  289. * A function that is executed when a collection item has been held for a specified period.
  290. */
  291. onItemHold: EventEmitter<any>;
  292. /**
  293. * A function that is executed after a collection item is rendered.
  294. */
  295. onItemRendered: EventEmitter<any>;
  296. /**
  297. * A function that is executed after a list item is moved to another position.
  298. */
  299. onItemReordered: EventEmitter<any>;
  300. /**
  301. * A function that is executed when a list item is swiped.
  302. */
  303. onItemSwipe: EventEmitter<any>;
  304. /**
  305. * A function that is executed after a widget option is changed.
  306. */
  307. onOptionChanged: EventEmitter<any>;
  308. /**
  309. * A function that is executed before the next page is loaded.
  310. */
  311. onPageLoading: EventEmitter<any>;
  312. /**
  313. * A function that is executed when the "pull to refresh" gesture is performed. Supported in mobile themes only.
  314. */
  315. onPullRefresh: EventEmitter<any>;
  316. /**
  317. * A function that is executed on each scroll gesture.
  318. */
  319. onScroll: EventEmitter<any>;
  320. /**
  321. * A function that is executed when the "Select All" check box value is changed. Applies only if the selectionMode is "all".
  322. */
  323. onSelectAllValueChanged: EventEmitter<any>;
  324. /**
  325. * A function that is executed when a collection item is selected or selection is canceled.
  326. */
  327. onSelectionChanged: EventEmitter<any>;
  328. /**
  329. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  330. */
  331. accessKeyChange: EventEmitter<string>;
  332. /**
  333. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  334. */
  335. activeStateEnabledChange: EventEmitter<boolean>;
  336. /**
  337. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  338. */
  339. allowItemDeletingChange: EventEmitter<boolean>;
  340. /**
  341. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  342. */
  343. allowItemReorderingChange: EventEmitter<boolean>;
  344. /**
  345. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  346. */
  347. bounceEnabledChange: EventEmitter<boolean>;
  348. /**
  349. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  350. */
  351. collapsibleGroupsChange: EventEmitter<boolean>;
  352. /**
  353. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  354. */
  355. dataSourceChange: EventEmitter<DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<string | DevExpress.ui.CollectionWidgetItem>>;
  356. /**
  357. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  358. */
  359. disabledChange: EventEmitter<boolean>;
  360. /**
  361. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  362. */
  363. displayExprChange: EventEmitter<Function | string>;
  364. /**
  365. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  366. */
  367. elementAttrChange: EventEmitter<any>;
  368. /**
  369. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  370. */
  371. focusStateEnabledChange: EventEmitter<boolean>;
  372. /**
  373. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  374. */
  375. groupedChange: EventEmitter<boolean>;
  376. /**
  377. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  378. */
  379. groupTemplateChange: EventEmitter<any>;
  380. /**
  381. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  382. */
  383. heightChange: EventEmitter<number | Function | string>;
  384. /**
  385. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  386. */
  387. hintChange: EventEmitter<string>;
  388. /**
  389. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  390. */
  391. hoverStateEnabledChange: EventEmitter<boolean>;
  392. /**
  393. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  394. */
  395. indicateLoadingChange: EventEmitter<boolean>;
  396. /**
  397. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  398. */
  399. itemDeleteModeChange: EventEmitter<string>;
  400. /**
  401. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  402. */
  403. itemHoldTimeoutChange: EventEmitter<number>;
  404. /**
  405. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  406. */
  407. itemsChange: EventEmitter<Array<string | any | {
  408. badge?: string;
  409. disabled?: boolean;
  410. html?: string;
  411. icon?: string;
  412. key?: string;
  413. showChevron?: boolean;
  414. template?: any;
  415. text?: string;
  416. visible?: boolean;
  417. }>>;
  418. /**
  419. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  420. */
  421. itemTemplateChange: EventEmitter<any>;
  422. /**
  423. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  424. */
  425. keyExprChange: EventEmitter<Function | string>;
  426. /**
  427. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  428. */
  429. menuItemsChange: EventEmitter<Array<any | {
  430. action?: Function;
  431. text?: string;
  432. }>>;
  433. /**
  434. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  435. */
  436. menuModeChange: EventEmitter<string>;
  437. /**
  438. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  439. */
  440. nextButtonTextChange: EventEmitter<string>;
  441. /**
  442. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  443. */
  444. noDataTextChange: EventEmitter<string>;
  445. /**
  446. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  447. */
  448. pageLoadingTextChange: EventEmitter<string>;
  449. /**
  450. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  451. */
  452. pageLoadModeChange: EventEmitter<string>;
  453. /**
  454. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  455. */
  456. pulledDownTextChange: EventEmitter<string>;
  457. /**
  458. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  459. */
  460. pullingDownTextChange: EventEmitter<string>;
  461. /**
  462. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  463. */
  464. pullRefreshEnabledChange: EventEmitter<boolean>;
  465. /**
  466. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  467. */
  468. refreshingTextChange: EventEmitter<string>;
  469. /**
  470. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  471. */
  472. repaintChangesOnlyChange: EventEmitter<boolean>;
  473. /**
  474. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  475. */
  476. rtlEnabledChange: EventEmitter<boolean>;
  477. /**
  478. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  479. */
  480. scrollByContentChange: EventEmitter<boolean>;
  481. /**
  482. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  483. */
  484. scrollByThumbChange: EventEmitter<boolean>;
  485. /**
  486. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  487. */
  488. scrollingEnabledChange: EventEmitter<boolean>;
  489. /**
  490. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  491. */
  492. searchEditorOptionsChange: EventEmitter<DevExpress.ui.dxTextBoxOptions>;
  493. /**
  494. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  495. */
  496. searchEnabledChange: EventEmitter<boolean>;
  497. /**
  498. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  499. */
  500. searchExprChange: EventEmitter<Function | Array<Function>>;
  501. /**
  502. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  503. */
  504. searchModeChange: EventEmitter<string>;
  505. /**
  506. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  507. */
  508. searchTimeoutChange: EventEmitter<number>;
  509. /**
  510. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  511. */
  512. searchValueChange: EventEmitter<string>;
  513. /**
  514. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  515. */
  516. selectAllModeChange: EventEmitter<string>;
  517. /**
  518. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  519. */
  520. selectedItemKeysChange: EventEmitter<Array<any>>;
  521. /**
  522. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  523. */
  524. selectedItemsChange: EventEmitter<Array<any>>;
  525. /**
  526. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  527. */
  528. selectionModeChange: EventEmitter<string>;
  529. /**
  530. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  531. */
  532. showScrollbarChange: EventEmitter<string>;
  533. /**
  534. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  535. */
  536. showSelectionControlsChange: EventEmitter<boolean>;
  537. /**
  538. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  539. */
  540. tabIndexChange: EventEmitter<number>;
  541. /**
  542. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  543. */
  544. useNativeScrollingChange: EventEmitter<boolean>;
  545. /**
  546. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  547. */
  548. visibleChange: EventEmitter<boolean>;
  549. /**
  550. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  551. */
  552. widthChange: EventEmitter<number | Function | string>;
  553. itemsChildren: QueryList<DxiItemComponent>;
  554. menuItemsChildren: QueryList<DxiMenuItemComponent>;
  555. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  556. protected _createInstance(element: any, options: any): DxList;
  557. ngOnDestroy(): void;
  558. ngOnChanges(changes: SimpleChanges): void;
  559. setupChanges(prop: string, changes: SimpleChanges): void;
  560. ngDoCheck(): void;
  561. _setOption(name: string, value: any): void;
  562. }
  563. export declare class DxListModule {
  564. }