tab-panel.d.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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 DxTabPanel from 'devextreme/ui/tab_panel';
  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. /**
  24. * The TabPanel is a widget consisting of the Tabs and MultiView widgets. It automatically synchronizes the selected tab with the currently displayed view and vice versa.
  25. */
  26. export declare class DxTabPanelComponent extends DxComponent implements OnDestroy, OnChanges, DoCheck {
  27. private _watcherHelper;
  28. private _idh;
  29. instance: DxTabPanel;
  30. /**
  31. * Specifies the shortcut key that sets focus on the widget.
  32. */
  33. accessKey: string;
  34. /**
  35. * Specifies whether or not the widget changes its state when interacting with a user.
  36. */
  37. activeStateEnabled: boolean;
  38. /**
  39. * Specifies whether or not to animate the displayed item change.
  40. */
  41. animationEnabled: boolean;
  42. /**
  43. * Binds the widget to data.
  44. */
  45. dataSource: DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<string | DevExpress.ui.CollectionWidgetItem>;
  46. /**
  47. * Specifies whether to render the view's content when it is displayed. If false, the content is rendered immediately.
  48. */
  49. deferRendering: boolean;
  50. /**
  51. * Specifies whether the widget responds to user interaction.
  52. */
  53. disabled: boolean;
  54. /**
  55. * Specifies the attributes to be attached to the widget's root element.
  56. */
  57. elementAttr: any;
  58. /**
  59. * Specifies whether the widget can be focused using keyboard navigation.
  60. */
  61. focusStateEnabled: boolean;
  62. /**
  63. * Specifies the widget's height.
  64. */
  65. height: number | Function | string;
  66. /**
  67. * Specifies text for a hint that appears when a user pauses on the widget.
  68. */
  69. hint: string;
  70. /**
  71. * Specifies whether the widget changes its state when a user pauses on it.
  72. */
  73. hoverStateEnabled: boolean;
  74. /**
  75. * The time period in milliseconds before the onItemHold event is raised.
  76. */
  77. itemHoldTimeout: number;
  78. /**
  79. * An array of items displayed by the widget.
  80. */
  81. items: Array<string | any | {
  82. badge?: string;
  83. disabled?: boolean;
  84. html?: string;
  85. icon?: string;
  86. tabTemplate?: any;
  87. template?: any;
  88. text?: string;
  89. title?: string;
  90. }>;
  91. /**
  92. * Specifies a custom template for items.
  93. */
  94. itemTemplate: any;
  95. /**
  96. * Specifies a custom template for item titles.
  97. */
  98. itemTitleTemplate: any;
  99. /**
  100. * A Boolean value specifying whether or not to scroll back to the first item after the last item is swiped.
  101. */
  102. loop: boolean;
  103. /**
  104. * The text or HTML markup displayed by the widget if the item collection is empty.
  105. */
  106. noDataText: string;
  107. /**
  108. * Specifies whether to repaint only those elements whose data changed.
  109. */
  110. repaintChangesOnly: boolean;
  111. /**
  112. * Switches the widget to a right-to-left representation.
  113. */
  114. rtlEnabled: boolean;
  115. /**
  116. * A Boolean value specifying if tabs in the title are scrolled by content.
  117. */
  118. scrollByContent: boolean;
  119. /**
  120. * A Boolean indicating whether or not to add scrolling support for tabs in the title.
  121. */
  122. scrollingEnabled: boolean;
  123. /**
  124. * The index of the currently displayed item.
  125. */
  126. selectedIndex: number;
  127. /**
  128. * The selected item object.
  129. */
  130. selectedItem: any;
  131. /**
  132. * Specifies whether navigation buttons should be available when tabs exceed the widget's width.
  133. */
  134. showNavButtons: boolean;
  135. /**
  136. * A Boolean value specifying whether or not to allow users to change the selected index by swiping.
  137. */
  138. swipeEnabled: boolean;
  139. /**
  140. * Specifies the number of the element when the Tab key is used for navigating.
  141. */
  142. tabIndex: number;
  143. /**
  144. * Specifies whether the widget is visible.
  145. */
  146. visible: boolean;
  147. /**
  148. * Specifies the widget's width.
  149. */
  150. width: number | Function | string;
  151. /**
  152. * A function that is executed when the widget's content is ready and each time the content is changed.
  153. */
  154. onContentReady: EventEmitter<any>;
  155. /**
  156. * A function that is executed before the widget is disposed of.
  157. */
  158. onDisposing: EventEmitter<any>;
  159. /**
  160. * A function used in JavaScript frameworks to save the widget instance.
  161. */
  162. onInitialized: EventEmitter<any>;
  163. /**
  164. * A function that is executed when a collection item is clicked or tapped.
  165. */
  166. onItemClick: EventEmitter<any>;
  167. /**
  168. * A function that is executed when a collection item is right-clicked or pressed.
  169. */
  170. onItemContextMenu: EventEmitter<any>;
  171. /**
  172. * A function that is executed when a collection item has been held for a specified period.
  173. */
  174. onItemHold: EventEmitter<any>;
  175. /**
  176. * A function that is executed after a collection item is rendered.
  177. */
  178. onItemRendered: EventEmitter<any>;
  179. /**
  180. * A function that is executed after a widget option is changed.
  181. */
  182. onOptionChanged: EventEmitter<any>;
  183. /**
  184. * A function that is executed when a collection item is selected or selection is canceled.
  185. */
  186. onSelectionChanged: EventEmitter<any>;
  187. /**
  188. * A function that is executed when a tab is clicked or tapped.
  189. */
  190. onTitleClick: EventEmitter<any>;
  191. /**
  192. * A function that is executed when a tab has been held for a specified period.
  193. */
  194. onTitleHold: EventEmitter<any>;
  195. /**
  196. * A function that is executed after a tab is rendered.
  197. */
  198. onTitleRendered: EventEmitter<any>;
  199. /**
  200. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  201. */
  202. accessKeyChange: EventEmitter<string>;
  203. /**
  204. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  205. */
  206. activeStateEnabledChange: EventEmitter<boolean>;
  207. /**
  208. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  209. */
  210. animationEnabledChange: EventEmitter<boolean>;
  211. /**
  212. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  213. */
  214. dataSourceChange: EventEmitter<DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<string | DevExpress.ui.CollectionWidgetItem>>;
  215. /**
  216. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  217. */
  218. deferRenderingChange: EventEmitter<boolean>;
  219. /**
  220. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  221. */
  222. disabledChange: EventEmitter<boolean>;
  223. /**
  224. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  225. */
  226. elementAttrChange: EventEmitter<any>;
  227. /**
  228. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  229. */
  230. focusStateEnabledChange: EventEmitter<boolean>;
  231. /**
  232. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  233. */
  234. heightChange: EventEmitter<number | Function | string>;
  235. /**
  236. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  237. */
  238. hintChange: EventEmitter<string>;
  239. /**
  240. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  241. */
  242. hoverStateEnabledChange: EventEmitter<boolean>;
  243. /**
  244. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  245. */
  246. itemHoldTimeoutChange: EventEmitter<number>;
  247. /**
  248. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  249. */
  250. itemsChange: EventEmitter<Array<string | any | {
  251. badge?: string;
  252. disabled?: boolean;
  253. html?: string;
  254. icon?: string;
  255. tabTemplate?: any;
  256. template?: any;
  257. text?: string;
  258. title?: string;
  259. }>>;
  260. /**
  261. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  262. */
  263. itemTemplateChange: EventEmitter<any>;
  264. /**
  265. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  266. */
  267. itemTitleTemplateChange: EventEmitter<any>;
  268. /**
  269. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  270. */
  271. loopChange: EventEmitter<boolean>;
  272. /**
  273. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  274. */
  275. noDataTextChange: EventEmitter<string>;
  276. /**
  277. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  278. */
  279. repaintChangesOnlyChange: EventEmitter<boolean>;
  280. /**
  281. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  282. */
  283. rtlEnabledChange: EventEmitter<boolean>;
  284. /**
  285. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  286. */
  287. scrollByContentChange: EventEmitter<boolean>;
  288. /**
  289. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  290. */
  291. scrollingEnabledChange: EventEmitter<boolean>;
  292. /**
  293. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  294. */
  295. selectedIndexChange: EventEmitter<number>;
  296. /**
  297. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  298. */
  299. selectedItemChange: EventEmitter<any>;
  300. /**
  301. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  302. */
  303. showNavButtonsChange: EventEmitter<boolean>;
  304. /**
  305. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  306. */
  307. swipeEnabledChange: EventEmitter<boolean>;
  308. /**
  309. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  310. */
  311. tabIndexChange: EventEmitter<number>;
  312. /**
  313. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  314. */
  315. visibleChange: EventEmitter<boolean>;
  316. /**
  317. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  318. */
  319. widthChange: EventEmitter<number | Function | string>;
  320. itemsChildren: QueryList<DxiItemComponent>;
  321. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  322. protected _createInstance(element: any, options: any): DxTabPanel;
  323. ngOnDestroy(): void;
  324. ngOnChanges(changes: SimpleChanges): void;
  325. setupChanges(prop: string, changes: SimpleChanges): void;
  326. ngDoCheck(): void;
  327. _setOption(name: string, value: any): void;
  328. }
  329. export declare class DxTabPanelModule {
  330. }