tabs.d.ts 11 KB

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