check-box.d.ts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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 DxCheckBox from 'devextreme/ui/check_box';
  16. import { ControlValueAccessor } from '@angular/forms';
  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 CheckBox is a small box, which when selected by the end user, shows that a particular feature has been enabled or a specific option has been chosen.
  23. */
  24. export declare class DxCheckBoxComponent extends DxComponent implements OnDestroy, ControlValueAccessor {
  25. instance: DxCheckBox;
  26. /**
  27. * Specifies the shortcut key that sets focus on the widget.
  28. */
  29. accessKey: string;
  30. /**
  31. * Specifies whether or not the widget changes its state when interacting with a user.
  32. */
  33. activeStateEnabled: boolean;
  34. /**
  35. * Specifies whether the widget responds to user interaction.
  36. */
  37. disabled: boolean;
  38. /**
  39. * Specifies the attributes to be attached to the widget's root element.
  40. */
  41. elementAttr: any;
  42. /**
  43. * Specifies whether the widget can be focused using keyboard navigation.
  44. */
  45. focusStateEnabled: boolean;
  46. /**
  47. * Specifies the widget's height.
  48. */
  49. height: number | Function | string;
  50. /**
  51. * Specifies text for a hint that appears when a user pauses on the widget.
  52. */
  53. hint: string;
  54. /**
  55. * Specifies whether the widget changes its state when a user pauses on it.
  56. */
  57. hoverStateEnabled: boolean;
  58. /**
  59. * Specifies whether the editor's value is valid.
  60. */
  61. isValid: boolean;
  62. /**
  63. * The value to be assigned to the `name` attribute of the underlying HTML element.
  64. */
  65. name: string;
  66. /**
  67. * Specifies whether the editor is read-only.
  68. */
  69. readOnly: boolean;
  70. /**
  71. * Switches the widget to a right-to-left representation.
  72. */
  73. rtlEnabled: boolean;
  74. /**
  75. * Specifies the number of the element when the Tab key is used for navigating.
  76. */
  77. tabIndex: number;
  78. /**
  79. * Specifies the text displayed by the check box.
  80. */
  81. text: string;
  82. /**
  83. * Specifies information on the validation error when using a custom validation engine. Should be changed at runtime along with the isValid option.
  84. */
  85. validationError: any;
  86. /**
  87. * Specifies how the message about the validation rules that are not satisfied by this editor's value is displayed.
  88. */
  89. validationMessageMode: string;
  90. /**
  91. * Specifies the widget state.
  92. */
  93. value: boolean;
  94. /**
  95. * Specifies whether the widget is visible.
  96. */
  97. visible: boolean;
  98. /**
  99. * Specifies the widget's width.
  100. */
  101. width: number | Function | string;
  102. /**
  103. * A function that is executed when the widget's content is ready and each time the content is changed.
  104. */
  105. onContentReady: EventEmitter<any>;
  106. /**
  107. * A function that is executed before the widget is disposed of.
  108. */
  109. onDisposing: EventEmitter<any>;
  110. /**
  111. * A function used in JavaScript frameworks to save the widget instance.
  112. */
  113. onInitialized: EventEmitter<any>;
  114. /**
  115. * A function that is executed after a widget option is changed.
  116. */
  117. onOptionChanged: EventEmitter<any>;
  118. /**
  119. * A function that is executed after the widget's value is changed.
  120. */
  121. onValueChanged: EventEmitter<any>;
  122. /**
  123. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  124. */
  125. accessKeyChange: EventEmitter<string>;
  126. /**
  127. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  128. */
  129. activeStateEnabledChange: EventEmitter<boolean>;
  130. /**
  131. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  132. */
  133. disabledChange: EventEmitter<boolean>;
  134. /**
  135. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  136. */
  137. elementAttrChange: EventEmitter<any>;
  138. /**
  139. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  140. */
  141. focusStateEnabledChange: EventEmitter<boolean>;
  142. /**
  143. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  144. */
  145. heightChange: EventEmitter<number | Function | string>;
  146. /**
  147. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  148. */
  149. hintChange: EventEmitter<string>;
  150. /**
  151. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  152. */
  153. hoverStateEnabledChange: EventEmitter<boolean>;
  154. /**
  155. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  156. */
  157. isValidChange: EventEmitter<boolean>;
  158. /**
  159. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  160. */
  161. nameChange: EventEmitter<string>;
  162. /**
  163. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  164. */
  165. readOnlyChange: EventEmitter<boolean>;
  166. /**
  167. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  168. */
  169. rtlEnabledChange: EventEmitter<boolean>;
  170. /**
  171. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  172. */
  173. tabIndexChange: EventEmitter<number>;
  174. /**
  175. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  176. */
  177. textChange: EventEmitter<string>;
  178. /**
  179. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  180. */
  181. validationErrorChange: EventEmitter<any>;
  182. /**
  183. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  184. */
  185. validationMessageModeChange: EventEmitter<string>;
  186. /**
  187. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  188. */
  189. valueChange: EventEmitter<boolean>;
  190. /**
  191. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  192. */
  193. visibleChange: EventEmitter<boolean>;
  194. /**
  195. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  196. */
  197. widthChange: EventEmitter<number | Function | string>;
  198. onBlur: EventEmitter<any>;
  199. change(_: any): void;
  200. touched: (_: any) => void;
  201. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  202. protected _createInstance(element: any, options: any): DxCheckBox;
  203. writeValue(value: any): void;
  204. setDisabledState(isDisabled: boolean): void;
  205. registerOnChange(fn: (_: any) => void): void;
  206. registerOnTouched(fn: () => void): void;
  207. _createWidget(element: any): void;
  208. ngOnDestroy(): void;
  209. }
  210. export declare class DxCheckBoxModule {
  211. }