toast.d.ts 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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 } from '@angular/core';
  15. import DevExpress from 'devextreme/bundles/dx.all';
  16. import DxToast from 'devextreme/ui/toast';
  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. /**
  22. * The Toast is a widget that provides pop-up notifications.
  23. */
  24. export declare class DxToastComponent extends DxComponent implements OnDestroy {
  25. instance: DxToast;
  26. /**
  27. * Specifies the shortcut key that sets focus on the widget.
  28. */
  29. accessKey: string;
  30. /**
  31. * Configures widget visibility animations. This object contains two fields: show and hide.
  32. */
  33. animation: {
  34. hide?: DevExpress.animationConfig;
  35. show?: DevExpress.animationConfig;
  36. };
  37. /**
  38. * A Boolean value specifying whether or not the toast is closed if a user clicks it.
  39. */
  40. closeOnClick: boolean;
  41. /**
  42. * Specifies whether to close the widget if a user clicks outside it.
  43. */
  44. closeOnOutsideClick: boolean | Function;
  45. /**
  46. * A Boolean value specifying whether or not the toast is closed if a user swipes it out of the screen boundaries.
  47. */
  48. closeOnSwipe: boolean;
  49. /**
  50. * Specifies a custom template for the widget content.
  51. */
  52. contentTemplate: any;
  53. /**
  54. * Specifies whether to render the widget's content when it is displayed. If false, the content is rendered immediately.
  55. */
  56. deferRendering: boolean;
  57. /**
  58. * The time span in milliseconds during which the Toast widget is visible.
  59. */
  60. displayTime: number;
  61. /**
  62. * Specifies the attributes to be attached to the widget's root element.
  63. */
  64. elementAttr: any;
  65. /**
  66. * Specifies whether the widget can be focused using keyboard navigation.
  67. */
  68. focusStateEnabled: boolean;
  69. /**
  70. * Specifies the widget's height in pixels.
  71. */
  72. height: number | Function | string;
  73. /**
  74. * Specifies text for a hint that appears when a user pauses on the widget.
  75. */
  76. hint: string;
  77. /**
  78. * Specifies whether the widget changes its state when a user pauses on it.
  79. */
  80. hoverStateEnabled: boolean;
  81. /**
  82. * Specifies the maximum height the widget can reach while resizing.
  83. */
  84. maxHeight: number | Function | string;
  85. /**
  86. * Specifies the maximum width the widget can reach while resizing.
  87. */
  88. maxWidth: number | Function | string;
  89. /**
  90. * The Toast message text.
  91. */
  92. message: string;
  93. /**
  94. * Specifies the minimum height the widget can reach while resizing.
  95. */
  96. minHeight: number | Function | string;
  97. /**
  98. * Specifies the minimum width the widget can reach while resizing.
  99. */
  100. minWidth: number | Function | string;
  101. /**
  102. * Positions the widget.
  103. */
  104. position: DevExpress.positionConfig | string;
  105. /**
  106. * Switches the widget to a right-to-left representation.
  107. */
  108. rtlEnabled: boolean;
  109. /**
  110. * Specifies whether to shade the background when the widget is active.
  111. */
  112. shading: boolean;
  113. /**
  114. * Specifies the shading color.
  115. */
  116. shadingColor: string;
  117. /**
  118. * Specifies the number of the element when the Tab key is used for navigating.
  119. */
  120. tabIndex: number;
  121. /**
  122. * Specifies the Toast widget type.
  123. */
  124. type: string;
  125. /**
  126. * A Boolean value specifying whether or not the widget is visible.
  127. */
  128. visible: boolean;
  129. /**
  130. * Specifies the widget's width in pixels.
  131. */
  132. width: number | Function | string;
  133. /**
  134. * A function that is executed when the widget's content is ready and each time the content is changed.
  135. */
  136. onContentReady: EventEmitter<any>;
  137. /**
  138. * A function that is executed before the widget is disposed of.
  139. */
  140. onDisposing: EventEmitter<any>;
  141. /**
  142. * A function that is executed after the widget is hidden.
  143. */
  144. onHidden: EventEmitter<any>;
  145. /**
  146. * A function that is executed before the widget is hidden.
  147. */
  148. onHiding: EventEmitter<any>;
  149. /**
  150. * A function used in JavaScript frameworks to save the widget instance.
  151. */
  152. onInitialized: EventEmitter<any>;
  153. /**
  154. * A function that is executed after a widget option is changed.
  155. */
  156. onOptionChanged: EventEmitter<any>;
  157. /**
  158. * A function that is executed before the widget is displayed.
  159. */
  160. onShowing: EventEmitter<any>;
  161. /**
  162. * A function that is executed after the widget is displayed.
  163. */
  164. onShown: EventEmitter<any>;
  165. /**
  166. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  167. */
  168. accessKeyChange: EventEmitter<string>;
  169. /**
  170. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  171. */
  172. animationChange: EventEmitter<{
  173. hide?: DevExpress.animationConfig;
  174. show?: DevExpress.animationConfig;
  175. }>;
  176. /**
  177. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  178. */
  179. closeOnClickChange: EventEmitter<boolean>;
  180. /**
  181. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  182. */
  183. closeOnOutsideClickChange: EventEmitter<boolean | Function>;
  184. /**
  185. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  186. */
  187. closeOnSwipeChange: EventEmitter<boolean>;
  188. /**
  189. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  190. */
  191. contentTemplateChange: EventEmitter<any>;
  192. /**
  193. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  194. */
  195. deferRenderingChange: EventEmitter<boolean>;
  196. /**
  197. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  198. */
  199. displayTimeChange: EventEmitter<number>;
  200. /**
  201. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  202. */
  203. elementAttrChange: EventEmitter<any>;
  204. /**
  205. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  206. */
  207. focusStateEnabledChange: EventEmitter<boolean>;
  208. /**
  209. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  210. */
  211. heightChange: EventEmitter<number | Function | string>;
  212. /**
  213. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  214. */
  215. hintChange: EventEmitter<string>;
  216. /**
  217. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  218. */
  219. hoverStateEnabledChange: EventEmitter<boolean>;
  220. /**
  221. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  222. */
  223. maxHeightChange: EventEmitter<number | Function | string>;
  224. /**
  225. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  226. */
  227. maxWidthChange: EventEmitter<number | Function | string>;
  228. /**
  229. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  230. */
  231. messageChange: EventEmitter<string>;
  232. /**
  233. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  234. */
  235. minHeightChange: EventEmitter<number | Function | string>;
  236. /**
  237. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  238. */
  239. minWidthChange: EventEmitter<number | Function | string>;
  240. /**
  241. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  242. */
  243. positionChange: EventEmitter<DevExpress.positionConfig | string>;
  244. /**
  245. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  246. */
  247. rtlEnabledChange: EventEmitter<boolean>;
  248. /**
  249. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  250. */
  251. shadingChange: EventEmitter<boolean>;
  252. /**
  253. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  254. */
  255. shadingColorChange: EventEmitter<string>;
  256. /**
  257. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  258. */
  259. tabIndexChange: EventEmitter<number>;
  260. /**
  261. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  262. */
  263. typeChange: EventEmitter<string>;
  264. /**
  265. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  266. */
  267. visibleChange: EventEmitter<boolean>;
  268. /**
  269. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  270. */
  271. widthChange: EventEmitter<number | Function | string>;
  272. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  273. protected _createInstance(element: any, options: any): DxToast;
  274. ngOnDestroy(): void;
  275. }
  276. export declare class DxToastModule {
  277. }