@exhaustive-ui/mcp 22.5.0 → 22.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/data/cards/accordion.md +5 -2
  2. package/data/cards/animateonscroll.md +8 -5
  3. package/data/cards/autocomplete.md +8 -3
  4. package/data/cards/autofocus.md +4 -2
  5. package/data/cards/avatar.md +4 -2
  6. package/data/cards/badge.md +2 -1
  7. package/data/cards/breadcrumb.md +3 -1
  8. package/data/cards/button.md +8 -2
  9. package/data/cards/card.md +2 -1
  10. package/data/cards/carousel.md +7 -5
  11. package/data/cards/cascadeselect.md +2 -6
  12. package/data/cards/chart.md +9 -7
  13. package/data/cards/checkbox.md +4 -3
  14. package/data/cards/chip.md +2 -1
  15. package/data/cards/classnames.md +21 -3
  16. package/data/cards/colorpicker.md +2 -1
  17. package/data/cards/confirmdialog.md +35 -5
  18. package/data/cards/confirmpopup.md +25 -3
  19. package/data/cards/contextmenu.md +1 -7
  20. package/data/cards/dataview.md +28 -9
  21. package/data/cards/datepicker.md +4 -3
  22. package/data/cards/dialog.md +3 -3
  23. package/data/cards/divider.md +2 -1
  24. package/data/cards/dock.md +24 -3
  25. package/data/cards/dragdrop.md +5 -1
  26. package/data/cards/drawer.md +3 -3
  27. package/data/cards/dynamicdialog.md +41 -14
  28. package/data/cards/editor.md +1 -1
  29. package/data/cards/fieldset.md +2 -1
  30. package/data/cards/fileinput.md +1 -1
  31. package/data/cards/fileupload.md +7 -8
  32. package/data/cards/floatlabel.md +1 -1
  33. package/data/cards/fluid.md +7 -5
  34. package/data/cards/focustrap.md +6 -2
  35. package/data/cards/galleria.md +18 -25
  36. package/data/cards/iconfield.md +3 -2
  37. package/data/cards/iftalabel.md +1 -1
  38. package/data/cards/image.md +4 -2
  39. package/data/cards/imagecompare.md +4 -3
  40. package/data/cards/inplace.md +2 -1
  41. package/data/cards/inputgroup.md +14 -3
  42. package/data/cards/inputmask.md +2 -2
  43. package/data/cards/inputnumber.md +4 -3
  44. package/data/cards/inputotp.md +2 -2
  45. package/data/cards/inputtext.md +2 -2
  46. package/data/cards/keyfilter.md +2 -1
  47. package/data/cards/knob.md +3 -2
  48. package/data/cards/listbox.md +5 -3
  49. package/data/cards/megamenu.md +7 -8
  50. package/data/cards/menu.md +3 -7
  51. package/data/cards/menubar.md +3 -7
  52. package/data/cards/message.md +2 -1
  53. package/data/cards/metergroup.md +3 -7
  54. package/data/cards/multiselect.md +5 -9
  55. package/data/cards/orderlist.md +6 -4
  56. package/data/cards/organizationchart.md +33 -6
  57. package/data/cards/overlay.md +2 -1
  58. package/data/cards/paginator.md +2 -1
  59. package/data/cards/panel.md +2 -1
  60. package/data/cards/panelmenu.md +4 -13
  61. package/data/cards/password.md +6 -3
  62. package/data/cards/picklist.md +9 -5
  63. package/data/cards/popover.md +6 -5
  64. package/data/cards/progressbar.md +4 -3
  65. package/data/cards/progressspinner.md +2 -1
  66. package/data/cards/radiobutton.md +4 -3
  67. package/data/cards/rating.md +1 -1
  68. package/data/cards/ripple.md +2 -1
  69. package/data/cards/scrollpanel.md +2 -1
  70. package/data/cards/scrolltop.md +5 -3
  71. package/data/cards/select.md +2 -1
  72. package/data/cards/selectbutton.md +6 -2
  73. package/data/cards/skeleton.md +2 -1
  74. package/data/cards/slider.md +4 -3
  75. package/data/cards/speeddial.md +7 -4
  76. package/data/cards/splitbutton.md +21 -18
  77. package/data/cards/splitter.md +2 -1
  78. package/data/cards/stepper.md +8 -3
  79. package/data/cards/styleclass.md +4 -2
  80. package/data/cards/table.md +46 -11
  81. package/data/cards/tabs.md +2 -1
  82. package/data/cards/tag.md +2 -1
  83. package/data/cards/terminal.md +31 -22
  84. package/data/cards/textarea.md +3 -2
  85. package/data/cards/tieredmenu.md +1 -6
  86. package/data/cards/timeline.md +5 -5
  87. package/data/cards/toast.md +7 -8
  88. package/data/cards/togglebutton.md +1 -1
  89. package/data/cards/toggleswitch.md +4 -3
  90. package/data/cards/toolbar.md +8 -8
  91. package/data/cards/tooltip.md +2 -1
  92. package/data/cards/tree.md +3 -6
  93. package/data/cards/treeselect.md +6 -7
  94. package/data/cards/treetable.md +52 -31
  95. package/data/components/accordion.md +31 -23
  96. package/data/components/animateonscroll.md +18 -15
  97. package/data/components/autocomplete.md +162 -93
  98. package/data/components/autofocus.md +9 -7
  99. package/data/components/avatar.md +56 -43
  100. package/data/components/badge.md +27 -18
  101. package/data/components/blockui.md +15 -8
  102. package/data/components/breadcrumb.md +20 -14
  103. package/data/components/button.md +121 -94
  104. package/data/components/card.md +12 -10
  105. package/data/components/carousel.md +75 -53
  106. package/data/components/cascadeselect.md +271 -238
  107. package/data/components/chart.md +88 -74
  108. package/data/components/checkbox.md +107 -73
  109. package/data/components/chip.md +20 -16
  110. package/data/components/classnames.md +22 -4
  111. package/data/components/colorpicker.md +54 -36
  112. package/data/components/confirmdialog.md +146 -43
  113. package/data/components/confirmpopup.md +95 -22
  114. package/data/components/contextmenu.md +110 -39
  115. package/data/components/dataview.md +176 -83
  116. package/data/components/datepicker.md +171 -141
  117. package/data/components/dialog.md +80 -68
  118. package/data/components/divider.md +17 -12
  119. package/data/components/dock.md +63 -27
  120. package/data/components/dragdrop.md +26 -12
  121. package/data/components/drawer.md +67 -48
  122. package/data/components/dynamicdialog.md +22 -13
  123. package/data/components/editor.md +42 -33
  124. package/data/components/fieldset.md +20 -17
  125. package/data/components/fileinput.md +92 -35
  126. package/data/components/fileupload.md +101 -61
  127. package/data/components/floatlabel.md +20 -11
  128. package/data/components/fluid.md +11 -9
  129. package/data/components/focustrap.md +11 -7
  130. package/data/components/galleria.md +224 -83
  131. package/data/components/iconfield.md +23 -15
  132. package/data/components/iftalabel.md +15 -9
  133. package/data/components/image.md +31 -26
  134. package/data/components/imagecompare.md +8 -6
  135. package/data/components/inplace.md +27 -22
  136. package/data/components/inputgroup.md +53 -29
  137. package/data/components/inputmask.md +107 -85
  138. package/data/components/inputnumber.md +127 -89
  139. package/data/components/inputotp.md +55 -42
  140. package/data/components/inputtext.md +72 -50
  141. package/data/components/keyfilter.md +6 -3
  142. package/data/components/knob.md +70 -58
  143. package/data/components/listbox.md +171 -141
  144. package/data/components/megamenu.md +24 -23
  145. package/data/components/menu.md +37 -34
  146. package/data/components/menubar.md +27 -22
  147. package/data/components/message.md +44 -32
  148. package/data/components/metergroup.md +48 -17
  149. package/data/components/multiselect.md +232 -168
  150. package/data/components/orderlist.md +55 -48
  151. package/data/components/organizationchart.md +182 -13
  152. package/data/components/overlay.md +31 -26
  153. package/data/components/paginator.md +49 -34
  154. package/data/components/panel.md +23 -19
  155. package/data/components/panelmenu.md +51 -25
  156. package/data/components/password.md +104 -91
  157. package/data/components/picklist.md +92 -70
  158. package/data/components/popover.md +68 -46
  159. package/data/components/progressbar.md +28 -22
  160. package/data/components/progressspinner.md +13 -11
  161. package/data/components/radiobutton.md +69 -35
  162. package/data/components/rating.md +48 -40
  163. package/data/components/ripple.md +8 -6
  164. package/data/components/scroller.md +29 -29
  165. package/data/components/scrollpanel.md +9 -7
  166. package/data/components/scrolltop.md +20 -18
  167. package/data/components/select.md +248 -169
  168. package/data/components/selectbutton.md +118 -56
  169. package/data/components/skeleton.md +22 -18
  170. package/data/components/slider.md +73 -49
  171. package/data/components/speeddial.md +77 -59
  172. package/data/components/splitbutton.md +354 -329
  173. package/data/components/splitter.md +22 -18
  174. package/data/components/stepper.md +38 -21
  175. package/data/components/styleclass.md +12 -6
  176. package/data/components/table.md +523 -314
  177. package/data/components/tabs.md +44 -26
  178. package/data/components/tag.md +18 -14
  179. package/data/components/terminal.md +38 -27
  180. package/data/components/textarea.md +82 -47
  181. package/data/components/tieredmenu.md +34 -29
  182. package/data/components/timeline.md +29 -28
  183. package/data/components/toast.md +115 -57
  184. package/data/components/togglebutton.md +53 -39
  185. package/data/components/toggleswitch.md +41 -28
  186. package/data/components/toolbar.md +19 -18
  187. package/data/components/tooltip.md +43 -32
  188. package/data/components/tree.md +114 -81
  189. package/data/components/treeselect.md +176 -174
  190. package/data/components/treetable.md +1250 -1045
  191. package/data/components.json +4122 -4080
  192. package/data/llms-full.txt +8784 -6249
  193. package/data/manifest.json +154 -15
  194. package/data/pages/tailwind.md +20 -10
  195. package/data/snapshot.json +2 -2
  196. package/dist/index.d.mts +2 -0
  197. package/dist/index.mjs +3 -3
  198. package/dist/index.mjs.map +1 -1
  199. package/package.json +1 -1
@@ -4,18 +4,18 @@ TreeSelect is a form component to choose from hierarchical data.
4
4
 
5
5
  ## Accessibility
6
6
 
7
- Screen Reader Value to describe the component can either be provided with ariaLabelledBy or ariaLabel props. The treeselect element has a combobox role in addition to aria-haspopup and aria-expanded attributes. The relation between the combobox and the popup is created with aria-controls that refers to the id of the popup. The popup list has an id that refers to the aria-controls attribute of the combobox element and uses tree as the role. Each list item has a treeitem role along with aria-label , aria-selected and aria-expanded attributes. In checkbox selection, aria-checked is used instead of aria-selected . Checkbox and toggle icons are hidden from screen readers as their parent element with treeitem role and attributes are used instead for readers and keyboard support. The container element of a treenode has the group role. The aria-setsize , aria-posinset and aria-level attributes are calculated implicitly and added to each treeitem. If filtering is enabled, filterInputProps can be defined to give aria-* props to the filter input element.
7
+ Screen Reader Value to describe the component can either be provided with ariaLabelledBy or ariaLabel props. The treeselect element has a combobox role in addition to aria-haspopup and aria-expanded attributes. The relation between the combobox and the popup is created with aria-controls that refers to the id of the popup. The popup list has an id that refers to the aria-controls attribute of the combobox element and uses tree as the role. Each list item has a treeitem role along with aria-label , aria-selected and aria-expanded attributes. In checkbox selection, aria-checked is used instead of aria-selected . Checkbox and toggle icons are hidden from screen readers as their parent element with treeitem role and attributes are used instead for readers and keyboard support. The container element of a treenode has the group role. The aria-setsize , aria-posinset and aria-level attributes are calculated implicitly and added to each treeitem.
8
8
 
9
9
  ## Basic
10
10
 
11
11
  TreeSelect is used as a controlled component with ng-model directive along with an options collection. Internally Tree component is used so the options model is based on TreeNode API. In single selection mode, value binding should be the key value of a node.
12
12
 
13
13
  ```typescript
14
- import { Component, OnInit, inject } from '@angular/core';
14
+ import { Component, inject } from '@angular/core';
15
15
  import { FormsModule } from '@angular/forms';
16
+ import { RouterModule } from '@angular/router';
16
17
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
17
18
  import { NodeService } from '@/service/nodeservice';
18
- import { TreeNode } from '@exhaustive-ui/core/api';
19
19
 
20
20
  @Component({
21
21
  template: `
@@ -24,20 +24,19 @@ import { TreeNode } from '@exhaustive-ui/core/api';
24
24
  </div>
25
25
  `,
26
26
  standalone: true,
27
- imports: [TreeSelectModule, FormsModule],
27
+ imports: [TreeSelectModule, FormsModule, RouterModule],
28
28
  providers: [NodeService]
29
29
  })
30
- export class TreeselectBasicDemo implements OnInit {
30
+ export class TreeselectBasicDemo {
31
31
  private nodeService = inject(NodeService);
32
+
32
33
  nodes!: any[];
34
+
33
35
  selectedNodes: any;
34
36
 
35
37
  constructor() {
36
38
  this.nodeService.getFiles().then((files) => (this.nodes = files));
37
39
  }
38
-
39
- ngOnInit() {
40
- }
41
40
  }
42
41
  ```
43
42
 
@@ -46,7 +45,7 @@ export class TreeselectBasicDemo implements OnInit {
46
45
  Selection of multiple nodes via checkboxes is enabled by configuring selectionMode as checkbox .
47
46
 
48
47
  ```typescript
49
- import { Component, OnInit, inject } from '@angular/core';
48
+ import { Component, inject } from '@angular/core';
50
49
  import { FormsModule } from '@angular/forms';
51
50
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
52
51
  import { NodeService } from '@/service/nodeservice';
@@ -61,17 +60,16 @@ import { NodeService } from '@/service/nodeservice';
61
60
  imports: [TreeSelectModule, FormsModule],
62
61
  providers: [NodeService]
63
62
  })
64
- export class TreeselectCheckboxDemo implements OnInit {
63
+ export class TreeselectCheckboxDemo {
65
64
  private nodeService = inject(NodeService);
65
+
66
66
  nodes!: any[];
67
+
67
68
  selectedNodes: any;
68
69
 
69
70
  constructor() {
70
71
  this.nodeService.getFiles().then((files) => (this.nodes = files));
71
72
  }
72
-
73
- ngOnInit() {
74
- }
75
73
  }
76
74
  ```
77
75
 
@@ -80,8 +78,9 @@ export class TreeselectCheckboxDemo implements OnInit {
80
78
  When showClear is enabled, a clear icon is displayed to clear the value.
81
79
 
82
80
  ```typescript
83
- import { Component, OnInit, inject } from '@angular/core';
81
+ import { Component, inject } from '@angular/core';
84
82
  import { FormsModule } from '@angular/forms';
83
+ import { RouterModule } from '@angular/router';
85
84
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
86
85
  import { NodeService } from '@/service/nodeservice';
87
86
 
@@ -92,20 +91,19 @@ import { NodeService } from '@/service/nodeservice';
92
91
  </div>
93
92
  `,
94
93
  standalone: true,
95
- imports: [TreeSelectModule, FormsModule],
94
+ imports: [TreeSelectModule, FormsModule, RouterModule],
96
95
  providers: [NodeService]
97
96
  })
98
- export class TreeselectCleariconDemo implements OnInit {
97
+ export class TreeselectCleariconDemo {
99
98
  private nodeService = inject(NodeService);
99
+
100
100
  nodes!: any[];
101
+
101
102
  selectedNodes: any;
102
103
 
103
104
  constructor() {
104
105
  this.nodeService.getFiles().then((files) => (this.nodes = files));
105
106
  }
106
-
107
- ngOnInit() {
108
- }
109
107
  }
110
108
  ```
111
109
 
@@ -114,7 +112,7 @@ export class TreeselectCleariconDemo implements OnInit {
114
112
  When disabled is present, the element cannot be edited and focused.
115
113
 
116
114
  ```typescript
117
- import { Component, OnInit, inject } from '@angular/core';
115
+ import { Component, inject } from '@angular/core';
118
116
  import { FormsModule } from '@angular/forms';
119
117
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
120
118
  import { NodeService } from '@/service/nodeservice';
@@ -129,17 +127,16 @@ import { NodeService } from '@/service/nodeservice';
129
127
  imports: [TreeSelectModule, FormsModule],
130
128
  providers: [NodeService]
131
129
  })
132
- export class TreeselectDisabledDemo implements OnInit {
130
+ export class TreeselectDisabledDemo {
133
131
  private nodeService = inject(NodeService);
132
+
134
133
  nodes!: any[];
134
+
135
135
  selectedNodes: any;
136
136
 
137
137
  constructor() {
138
138
  this.nodeService.getFiles().then((files) => (this.nodes = files));
139
139
  }
140
-
141
- ngOnInit() {
142
- }
143
140
  }
144
141
  ```
145
142
 
@@ -148,7 +145,7 @@ export class TreeselectDisabledDemo implements OnInit {
148
145
  Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.
149
146
 
150
147
  ```typescript
151
- import { Component, OnInit, inject } from '@angular/core';
148
+ import { Component, inject } from '@angular/core';
152
149
  import { FormsModule } from '@angular/forms';
153
150
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
154
151
  import { NodeService } from '@/service/nodeservice';
@@ -160,20 +157,19 @@ import { NodeService } from '@/service/nodeservice';
160
157
  </div>
161
158
  `,
162
159
  standalone: true,
163
- imports: [TreeSelectModule, FormsModule],
160
+ imports: [FormsModule, TreeSelectModule],
164
161
  providers: [NodeService]
165
162
  })
166
- export class TreeselectFilledDemo implements OnInit {
163
+ export class TreeselectFilledDemo {
167
164
  private nodeService = inject(NodeService);
165
+
168
166
  nodes!: any[];
167
+
169
168
  selectedNodes: any;
170
169
 
171
170
  constructor() {
172
171
  this.nodeService.getFiles().then((files) => (this.nodes = files));
173
172
  }
174
-
175
- ngOnInit() {
176
- }
177
173
  }
178
174
  ```
179
175
 
@@ -182,7 +178,7 @@ export class TreeselectFilledDemo implements OnInit {
182
178
  Filtering is enabled by adding the filter property, by default label property of a node is used to compare against the value in the text field, in order to customize which field(s) should be used during search define filterBy property. In addition filterMode specifies the filtering strategy. In lenient mode when the query matches a node, children of the node are not searched further as all descendants of the node are included. On the other hand, in strict mode when the query matches a node, filtering continues on all descendants.
183
179
 
184
180
  ```typescript
185
- import { Component, OnInit, inject } from '@angular/core';
181
+ import { Component, inject } from '@angular/core';
186
182
  import { FormsModule } from '@angular/forms';
187
183
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
188
184
  import { NodeService } from '@/service/nodeservice';
@@ -194,20 +190,19 @@ import { NodeService } from '@/service/nodeservice';
194
190
  </div>
195
191
  `,
196
192
  standalone: true,
197
- imports: [TreeSelectModule, FormsModule],
193
+ imports: [FormsModule, TreeSelectModule],
198
194
  providers: [NodeService]
199
195
  })
200
- export class TreeselectFilterDemo implements OnInit {
196
+ export class TreeselectFilterDemo {
201
197
  private nodeService = inject(NodeService);
198
+
202
199
  nodes!: any[];
200
+
203
201
  selectedNodes: any;
204
202
 
205
203
  constructor() {
206
204
  this.nodeService.getFiles().then((files) => (this.nodes = files));
207
205
  }
208
-
209
- ngOnInit() {
210
- }
211
206
  }
212
207
  ```
213
208
 
@@ -216,10 +211,11 @@ export class TreeselectFilterDemo implements OnInit {
216
211
  A floating label appears on top of the input field when focused. Visit FloatLabel documentation for more information.
217
212
 
218
213
  ```typescript
219
- import { Component, OnInit, inject } from '@angular/core';
214
+ import { Component, inject } from '@angular/core';
220
215
  import { FormsModule } from '@angular/forms';
221
- import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
216
+ import { RouterModule } from '@angular/router';
222
217
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
218
+ import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
223
219
  import { NodeService } from '@/service/nodeservice';
224
220
 
225
221
  @Component({
@@ -240,22 +236,23 @@ import { NodeService } from '@/service/nodeservice';
240
236
  </div>
241
237
  `,
242
238
  standalone: true,
243
- imports: [FloatLabelModule, TreeSelectModule, FormsModule],
239
+ imports: [FormsModule, RouterModule, TreeSelectModule, FloatLabelModule],
244
240
  providers: [NodeService]
245
241
  })
246
- export class TreeselectFloatlabelDemo implements OnInit {
242
+ export class TreeselectFloatlabelDemo {
247
243
  private nodeService = inject(NodeService);
244
+
248
245
  nodes!: any[];
246
+
249
247
  value1: any;
248
+
250
249
  value2: any;
250
+
251
251
  value3: any;
252
252
 
253
253
  constructor() {
254
254
  this.nodeService.getFiles().then((files) => (this.nodes = files));
255
255
  }
256
-
257
- ngOnInit() {
258
- }
259
256
  }
260
257
  ```
261
258
 
@@ -264,8 +261,9 @@ export class TreeselectFloatlabelDemo implements OnInit {
264
261
  The fluid prop makes the component take up the full width of its container when set to true.
265
262
 
266
263
  ```typescript
267
- import { Component, OnInit, inject } from '@angular/core';
264
+ import { Component, inject } from '@angular/core';
268
265
  import { FormsModule } from '@angular/forms';
266
+ import { RouterModule } from '@angular/router';
269
267
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
270
268
  import { NodeService } from '@/service/nodeservice';
271
269
 
@@ -276,20 +274,19 @@ import { NodeService } from '@/service/nodeservice';
276
274
  </div>
277
275
  `,
278
276
  standalone: true,
279
- imports: [TreeSelectModule, FormsModule],
277
+ imports: [TreeSelectModule, FormsModule, RouterModule],
280
278
  providers: [NodeService]
281
279
  })
282
- export class TreeselectFluidDemo implements OnInit {
280
+ export class TreeselectFluidDemo {
283
281
  private nodeService = inject(NodeService);
282
+
284
283
  nodes!: any[];
284
+
285
285
  selectedNodes: any;
286
286
 
287
287
  constructor() {
288
288
  this.nodeService.getFiles().then((files) => (this.nodes = files));
289
289
  }
290
-
291
- ngOnInit() {
292
- }
293
290
  }
294
291
  ```
295
292
 
@@ -298,10 +295,11 @@ export class TreeselectFluidDemo implements OnInit {
298
295
  IftaLabel is used to create infield top aligned labels. Visit IftaLabel documentation for more information.
299
296
 
300
297
  ```typescript
301
- import { Component, OnInit, inject } from '@angular/core';
298
+ import { Component, inject } from '@angular/core';
302
299
  import { FormsModule } from '@angular/forms';
303
- import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
300
+ import { RouterModule } from '@angular/router';
304
301
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
302
+ import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
305
303
  import { NodeService } from '@/service/nodeservice';
306
304
 
307
305
  @Component({
@@ -314,20 +312,19 @@ import { NodeService } from '@/service/nodeservice';
314
312
  </div>
315
313
  `,
316
314
  standalone: true,
317
- imports: [IftaLabelModule, TreeSelectModule, FormsModule],
315
+ imports: [FormsModule, RouterModule, TreeSelectModule, IftaLabelModule],
318
316
  providers: [NodeService]
319
317
  })
320
- export class TreeselectIftalabelDemo implements OnInit {
318
+ export class TreeselectIftalabelDemo {
321
319
  private nodeService = inject(NodeService);
320
+
322
321
  nodes!: any[];
322
+
323
323
  selectedValue: any;
324
324
 
325
325
  constructor() {
326
326
  this.nodeService.getFiles().then((files) => (this.nodes = files));
327
327
  }
328
-
329
- ngOnInit() {
330
- }
331
328
  }
332
329
  ```
333
330
 
@@ -336,7 +333,7 @@ export class TreeselectIftalabelDemo implements OnInit {
336
333
  The invalid state is applied using the ⁠invalid property to indicate failed validation, which can be integrated with Angular Forms.
337
334
 
338
335
  ```typescript
339
- import { Component, OnInit, inject } from '@angular/core';
336
+ import { Component, inject } from '@angular/core';
340
337
  import { FormsModule } from '@angular/forms';
341
338
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
342
339
  import { NodeService } from '@/service/nodeservice';
@@ -349,21 +346,21 @@ import { NodeService } from '@/service/nodeservice';
349
346
  </div>
350
347
  `,
351
348
  standalone: true,
352
- imports: [TreeSelectModule, FormsModule],
349
+ imports: [FormsModule, TreeSelectModule],
353
350
  providers: [NodeService]
354
351
  })
355
- export class TreeselectInvalidDemo implements OnInit {
352
+ export class TreeselectInvalidDemo {
356
353
  private nodeService = inject(NodeService);
354
+
357
355
  nodes!: any[];
356
+
358
357
  selectedValue1: any;
358
+
359
359
  selectedValue2: any;
360
360
 
361
361
  constructor() {
362
362
  this.nodeService.getFiles().then((files) => (this.nodes = files));
363
363
  }
364
-
365
- ngOnInit() {
366
- }
367
364
  }
368
365
  ```
369
366
 
@@ -372,10 +369,10 @@ export class TreeselectInvalidDemo implements OnInit {
372
369
  Lazy loading is useful when dealing with huge datasets, in this example nodes are dynamically loaded on demand using loading property and onNodeExpand method.
373
370
 
374
371
  ```typescript
375
- import { Component, OnInit, signal } from '@angular/core';
372
+ import { Component, signal } from '@angular/core';
376
373
  import { FormsModule } from '@angular/forms';
377
- import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
378
374
  import { TreeNode } from '@exhaustive-ui/core/api';
375
+ import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
379
376
 
380
377
  @Component({
381
378
  template: `
@@ -395,11 +392,13 @@ import { TreeNode } from '@exhaustive-ui/core/api';
395
392
  </div>
396
393
  `,
397
394
  standalone: true,
398
- imports: [TreeSelectModule, FormsModule]
395
+ imports: [FormsModule, TreeSelectModule]
399
396
  })
400
- export class TreeselectLazyDemo implements OnInit {
397
+ export class TreeselectLazyDemo {
401
398
  selectedNodes: TreeNode[] = [];
399
+
402
400
  nodes = signal<TreeNode[]>(undefined);
401
+
403
402
  loading = signal<boolean>(false);
404
403
 
405
404
  ngOnInit() {
@@ -433,19 +432,19 @@ export class TreeselectLazyDemo implements OnInit {
433
432
  onNodeExpand(event: any) {
434
433
  if (!event.node.children) {
435
434
  event.node.loading = true;
436
-
435
+
437
436
  setTimeout(() => {
438
437
  const _nodes = this.nodes();
439
438
  let _node = { ...event.node };
440
439
  _node.children = [];
441
-
440
+
442
441
  for (let i = 0; i < 3; i++) {
443
442
  _node.children.push({
444
443
  key: event.node.key + '-' + i,
445
444
  label: 'Lazy ' + event.node.label + '-' + i
446
445
  });
447
446
  }
448
-
447
+
449
448
  const key = parseInt(_node.key, 10);
450
449
  _nodes[key] = { ..._node, loading: false };
451
450
  this.nodes.set([..._nodes]);
@@ -460,7 +459,7 @@ export class TreeselectLazyDemo implements OnInit {
460
459
  More than one node is selectable by setting selectionMode to multiple . By default in multiple selection mode, metaKey press (e.g. ⌘ ) is necessary to add to existing selections however this can be configured with disabling the metaKeySelection property. Note that in touch enabled devices, TreeSelect always ignores metaKey. In multiple selection mode, value binding should be an array of the selected nodes. Nodes are matched by their key , or by reference when they have no key.
461
460
 
462
461
  ```typescript
463
- import { Component, OnInit, inject } from '@angular/core';
462
+ import { Component, inject } from '@angular/core';
464
463
  import { FormsModule } from '@angular/forms';
465
464
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
466
465
  import { NodeService } from '@/service/nodeservice';
@@ -475,17 +474,16 @@ import { NodeService } from '@/service/nodeservice';
475
474
  imports: [TreeSelectModule, FormsModule],
476
475
  providers: [NodeService]
477
476
  })
478
- export class TreeselectMultipleDemo implements OnInit {
477
+ export class TreeselectMultipleDemo {
479
478
  private nodeService = inject(NodeService);
479
+
480
480
  nodes!: any[];
481
+
481
482
  selectedNodes: any;
482
483
 
483
484
  constructor() {
484
485
  this.nodeService.getFiles().then((files) => (this.nodes = files));
485
486
  }
486
-
487
- ngOnInit() {
488
- }
489
487
  }
490
488
  ```
491
489
 
@@ -494,14 +492,15 @@ export class TreeselectMultipleDemo implements OnInit {
494
492
  TreeSelect can also be used with reactive forms. In this case, the formControlName property is used to bind the component to a form control.
495
493
 
496
494
  ```typescript
497
- import { Component, OnInit, inject } from '@angular/core';
498
- import { ReactiveFormsModule } from '@angular/forms';
499
- import { MessageModule } from '@exhaustive-ui/core/message';
500
- import { ToastModule } from '@exhaustive-ui/core/toast';
495
+ import { Component, inject } from '@angular/core';
496
+ import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
497
+ import { CommonModule } from '@angular/common';
498
+ import { MessageService } from '@exhaustive-ui/core/api';
501
499
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
502
500
  import { ButtonModule } from '@exhaustive-ui/core/button';
501
+ import { ToastModule } from '@exhaustive-ui/core/toast';
502
+ import { MessageModule } from '@exhaustive-ui/core/message';
503
503
  import { NodeService } from '@/service/nodeservice';
504
- import { MessageService } from '@exhaustive-ui/core/api';
505
504
 
506
505
  @Component({
507
506
  template: `
@@ -519,24 +518,26 @@ import { MessageService } from '@exhaustive-ui/core/api';
519
518
  </div>
520
519
  `,
521
520
  standalone: true,
522
- imports: [MessageModule, ToastModule, TreeSelectModule, ButtonModule, ReactiveFormsModule],
523
- providers: [NodeService]
521
+ imports: [CommonModule, ReactiveFormsModule, TreeSelectModule, ButtonModule, ToastModule, MessageModule],
522
+ providers: [MessageService, NodeService]
524
523
  })
525
- export class TreeselectReactiveformsDemo implements OnInit {
524
+ export class TreeselectReactiveformsDemo {
525
+ private fb = inject(FormBuilder);
526
526
  private nodeService = inject(NodeService);
527
+
527
528
  messageService = inject(MessageService);
529
+
528
530
  nodes!: any[];
531
+
529
532
  exampleForm: FormGroup | undefined;
533
+
530
534
  formSubmitted: boolean = false;
531
535
 
532
536
  constructor() {
533
537
  this.nodeService.getFiles().then((files) => (this.nodes = files));
534
- this.exampleForm = this.fb.group({
535
- selectedNodes: ['', Validators.required]
536
- });
537
- }
538
-
539
- ngOnInit() {
538
+ this.exampleForm = this.fb.group({
539
+ selectedNodes: ['', Validators.required]
540
+ });
540
541
  }
541
542
 
542
543
  onSubmit() {
@@ -560,14 +561,14 @@ export class TreeselectReactiveformsDemo implements OnInit {
560
561
  TreeSelect can also be used with Angular Signal Forms , the @angular/forms/signals API of Angular 21 and newer. The form model is a signal, form() declares its validators and the [formField] directive binds the component to a field. The field also sets the invalid state of the component, so the component is styled as invalid before any interaction, while the messages below appear once the field is touched or the form is submitted.
561
562
 
562
563
  ```typescript
563
- import { Component, OnInit, inject, signal } from '@angular/core';
564
+ import { Component, inject, signal } from '@angular/core';
564
565
  import { form, FormField, required, submit } from '@angular/forms/signals';
565
- import { MessageModule } from '@exhaustive-ui/core/message';
566
- import { ToastModule } from '@exhaustive-ui/core/toast';
566
+ import { MessageService, TreeNode } from '@exhaustive-ui/core/api';
567
567
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
568
568
  import { ButtonModule } from '@exhaustive-ui/core/button';
569
+ import { ToastModule } from '@exhaustive-ui/core/toast';
570
+ import { MessageModule } from '@exhaustive-ui/core/message';
569
571
  import { NodeService } from '@/service/nodeservice';
570
- import { TreeNode, MessageService } from '@exhaustive-ui/core/api';
571
572
 
572
573
  @Component({
573
574
  template: `
@@ -586,14 +587,18 @@ import { TreeNode, MessageService } from '@exhaustive-ui/core/api';
586
587
  </div>
587
588
  `,
588
589
  standalone: true,
589
- imports: [MessageModule, ToastModule, TreeSelectModule, ButtonModule, FormField],
590
- providers: [NodeService]
590
+ imports: [FormField, TreeSelectModule, ButtonModule, ToastModule, MessageModule],
591
+ providers: [MessageService, NodeService]
591
592
  })
592
- export class TreeselectSignalformsDemo implements OnInit {
593
+ export class TreeselectSignalformsDemo {
593
594
  private nodeService = inject(NodeService);
595
+
594
596
  messageService = inject(MessageService);
597
+
595
598
  nodes!: any[];
599
+
596
600
  model = signal<{ selectedNodes: TreeNode | null }>({ selectedNodes: null });
601
+
597
602
  exampleForm = form(this.model, (f) => {
598
603
  required(f.selectedNodes);
599
604
  });
@@ -602,9 +607,6 @@ export class TreeselectSignalformsDemo implements OnInit {
602
607
  this.nodeService.getFiles().then((files) => (this.nodes = files));
603
608
  }
604
609
 
605
- ngOnInit() {
606
- }
607
-
608
610
  onSubmit(event: Event) {
609
611
  event.preventDefault();
610
612
  submit(this.exampleForm, async () => {
@@ -620,7 +622,7 @@ export class TreeselectSignalformsDemo implements OnInit {
620
622
  TreeSelect provides small and large sizes as alternatives to the base.
621
623
 
622
624
  ```typescript
623
- import { Component, OnInit, inject } from '@angular/core';
625
+ import { Component, inject } from '@angular/core';
624
626
  import { FormsModule } from '@angular/forms';
625
627
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
626
628
  import { NodeService } from '@/service/nodeservice';
@@ -634,22 +636,23 @@ import { NodeService } from '@/service/nodeservice';
634
636
  </div>
635
637
  `,
636
638
  standalone: true,
637
- imports: [TreeSelectModule, FormsModule],
639
+ imports: [FormsModule, TreeSelectModule],
638
640
  providers: [NodeService]
639
641
  })
640
- export class TreeselectSizesDemo implements OnInit {
642
+ export class TreeselectSizesDemo {
641
643
  private nodeService = inject(NodeService);
644
+
642
645
  nodes!: any[];
646
+
643
647
  value1: any;
648
+
644
649
  value2: any;
650
+
645
651
  value3: any;
646
652
 
647
653
  constructor() {
648
654
  this.nodeService.getFiles().then((files) => (this.nodes = files));
649
655
  }
650
-
651
- ngOnInit() {
652
- }
653
656
  }
654
657
  ```
655
658
 
@@ -658,10 +661,10 @@ export class TreeselectSizesDemo implements OnInit {
658
661
  TreeSelect offers multiple templates for customization through templating.
659
662
 
660
663
  ```typescript
661
- import { Component, OnInit, inject } from '@angular/core';
664
+ import { Component, inject } from '@angular/core';
662
665
  import { FormsModule } from '@angular/forms';
663
- import { ButtonModule } from '@exhaustive-ui/core/button';
664
666
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
667
+ import { ButtonModule } from '@exhaustive-ui/core/button';
665
668
  import { NodeService } from '@/service/nodeservice';
666
669
 
667
670
  @Component({
@@ -684,34 +687,34 @@ import { NodeService } from '@/service/nodeservice';
684
687
  </div>
685
688
  `,
686
689
  standalone: true,
687
- imports: [ButtonModule, TreeSelectModule, FormsModule],
690
+ imports: [FormsModule, TreeSelectModule, ButtonModule],
688
691
  providers: [NodeService]
689
692
  })
690
- export class TreeselectTemplateDemo implements OnInit {
693
+ export class TreeselectTemplateDemo {
691
694
  private nodeService = inject(NodeService);
695
+
692
696
  nodes!: any[];
697
+
693
698
  selectedNodes: any;
694
699
 
695
700
  constructor() {
696
701
  this.nodeService.getFiles().then((files) => (this.nodes = files));
697
702
  }
698
-
699
- ngOnInit() {
700
- }
701
703
  }
702
704
  ```
703
705
 
704
706
  ## templatedrivenforms-doc
705
707
 
706
708
  ```typescript
707
- import { Component, OnInit, inject } from '@angular/core';
709
+ import { Component, inject } from '@angular/core';
708
710
  import { FormsModule } from '@angular/forms';
709
- import { MessageModule } from '@exhaustive-ui/core/message';
710
- import { ToastModule } from '@exhaustive-ui/core/toast';
711
+ import { CommonModule } from '@angular/common';
712
+ import { MessageService } from '@exhaustive-ui/core/api';
711
713
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
712
714
  import { ButtonModule } from '@exhaustive-ui/core/button';
715
+ import { ToastModule } from '@exhaustive-ui/core/toast';
716
+ import { MessageModule } from '@exhaustive-ui/core/message';
713
717
  import { NodeService } from '@/service/nodeservice';
714
- import { MessageService } from '@exhaustive-ui/core/api';
715
718
 
716
719
  @Component({
717
720
  template: `
@@ -729,22 +732,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
729
732
  </div>
730
733
  `,
731
734
  standalone: true,
732
- imports: [MessageModule, ToastModule, TreeSelectModule, ButtonModule, FormsModule],
733
- providers: [NodeService]
735
+ imports: [CommonModule, FormsModule, TreeSelectModule, ButtonModule, ToastModule, MessageModule],
736
+ providers: [MessageService, NodeService]
734
737
  })
735
- export class TreeselectTemplatedrivenformsDemo implements OnInit {
738
+ export class TreeselectTemplatedrivenformsDemo {
736
739
  private nodeService = inject(NodeService);
740
+
737
741
  messageService = inject(MessageService);
742
+
738
743
  selectedNodes: any;
744
+
739
745
  nodes!: any[];
740
746
 
741
747
  constructor() {
742
748
  this.nodeService.getFiles().then((files) => (this.nodes = files));
743
749
  }
744
750
 
745
- ngOnInit() {
746
- }
747
-
748
751
  onSubmit(form: any) {
749
752
  if (form.valid) {
750
753
  this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Form Submitted', life: 3000 });
@@ -759,7 +762,7 @@ export class TreeselectTemplatedrivenformsDemo implements OnInit {
759
762
  VirtualScrolling is an efficient way of rendering the options by displaying a small subset of data in the viewport at any time. When dealing with huge number of options, it is suggested to enable VirtualScrolling to avoid performance issues. Usage is simple as setting virtualScroll property to true and defining virtualScrollItemSize to specify the height of an item.
760
763
 
761
764
  ```typescript
762
- import { Component, OnInit, inject } from '@angular/core';
765
+ import { Component, inject } from '@angular/core';
763
766
  import { FormsModule } from '@angular/forms';
764
767
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
765
768
  import { NodeService } from '@/service/nodeservice';
@@ -782,20 +785,19 @@ import { NodeService } from '@/service/nodeservice';
782
785
  </div>
783
786
  `,
784
787
  standalone: true,
785
- imports: [TreeSelectModule, FormsModule],
788
+ imports: [FormsModule, TreeSelectModule],
786
789
  providers: [NodeService]
787
790
  })
788
- export class TreeselectVirtualscrollDemo implements OnInit {
791
+ export class TreeselectVirtualscrollDemo {
789
792
  private nodeService = inject(NodeService);
793
+
790
794
  nodes!: any[];
795
+
791
796
  selectedNodes: any;
792
797
 
793
798
  constructor() {
794
799
  this.nodeService.getLargeTreeNodes().then((files) => (this.nodes = files));
795
800
  }
796
-
797
- ngOnInit() {
798
- }
799
801
  }
800
802
  ```
801
803
 
@@ -807,53 +809,53 @@ TreeSelect is a form component to choose from hierarchical data.
807
809
 
808
810
  | Name | Type | Default | Description |
809
811
  |------|------|---------|-------------|
810
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
811
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
812
- | pt | InputSignal<TreeSelectPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
813
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
814
- | required | InputSignalWithTransform<boolean, unknown> | false | There must be a value (if set). |
815
- | invalid | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have invalid state style. |
816
- | disabled | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have disabled state style. |
817
- | name | InputSignal<string> | undefined | When present, it specifies that the name of the input. |
818
- | inputId | InputSignal<string> | ... | Identifier of the underlying input element. |
819
- | scrollHeight | InputSignal<string> | ... | Height of the viewport, a scrollbar is defined if height of list exceeds this value. |
820
- | metaKeySelection | InputSignalWithTransform<boolean, unknown> | ... | Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically. |
821
- | display | InputSignal<"chip" \| "comma"> | ... | Defines how the selected items are displayed. |
822
- | selectionMode | InputSignal<"multiple" \| "single" \| "checkbox"> | ... | Defines the selection mode. |
823
- | tabindex | InputSignal<string> | ... | Index of the element in tabbing order. |
824
- | ariaLabel | InputSignal<string> | ... | Defines a string that labels the input for accessibility. |
825
- | ariaLabelledBy | InputSignal<string> | ... | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
826
- | togglerAriaLabel | InputSignal<string> | ... | Defines a string that labels the toggle button of the tree nodes for accessibility. |
827
- | placeholder | InputSignal<string> | ... | Label to display when there are no selections. |
828
- | panelClass | InputSignal<string \| string[] \| Set<string> \| { [klass: string]: any }> | ... | Style class of the overlay panel. |
829
- | panelStyle | InputSignal<{ [klass: string]: any }> | ... | Inline style of the panel element. |
830
- | panelStyleClass | InputSignal<string> | ... | Style class of the panel element. |
831
- | labelStyle | InputSignal<{ [klass: string]: any }> | ... | Inline style of the label element. |
832
- | labelStyleClass | InputSignal<string> | ... | Style class of the label element. |
833
- | overlayOptions | InputSignal<OverlayOptions> | ... | Specifies the options for the overlay. |
834
- | emptyMessage | InputSignal<string> | ... | Text to display when there are no options available. Defaults to value from Exhaustive locale configuration. |
835
- | filter | InputSignalWithTransform<boolean, unknown> | ... | When specified, displays an input field to filter the items. |
836
- | filterBy | InputSignal<string> | ... | When filtering is enabled, filterBy decides which field or fields (comma separated) to search against. |
837
- | filterMode | InputSignal<string> | ... | Mode for filtering valid values are "lenient" and "strict". Default is lenient. |
838
- | filterPlaceholder | InputSignal<string> | ... | Placeholder text to show when filter input is empty. |
839
- | filterLocale | InputSignal<string> | ... | Locale to use in filtering. The default locale is the host environment's current locale. |
840
- | filterInputAutoFocus | InputSignalWithTransform<boolean, unknown> | ... | Determines whether the filter input should be automatically focused when the component is rendered. |
841
- | propagateSelectionDown | InputSignalWithTransform<boolean, unknown> | ... | Whether checkbox selections propagate to descendant nodes. |
842
- | propagateSelectionUp | InputSignalWithTransform<boolean, unknown> | ... | Whether checkbox selections propagate to ancestor nodes. |
843
- | showClear | InputSignalWithTransform<boolean, unknown> | ... | When enabled, a clear icon is displayed to clear the value. |
844
- | resetFilterOnHide | InputSignalWithTransform<boolean, unknown> | ... | Clears the filter value when hiding the dropdown. |
845
- | virtualScroll | InputSignal<boolean> | ... | Whether the data should be loaded on demand during scroll. |
846
- | virtualScrollItemSize | InputSignal<number> | ... | Height of an item in the list for VirtualScrolling. |
847
- | virtualScrollOptions | InputSignal<ScrollerOptions> | ... | Whether to use the scroller feature. The properties of scroller component can be used like an object in it. |
848
- | autofocus | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the component should automatically get focus on load. |
849
- | options | InputSignal<TreeNode<any>[]> | undefined | An array of treenodes. |
850
- | loading | InputSignalWithTransform<boolean, unknown> | ... | Displays a loader to indicate data load is in progress. |
851
- | loadingMode | InputSignal<"mask" \| "icon"> | ... | Loading mode display. |
852
- | size | InputSignal<"small" \| "large"> | undefined | Specifies the size of the component. |
853
- | variant | InputSignal<"outlined" \| "filled"> | undefined | Specifies the input variant of the component. |
854
- | fluid | InputSignalWithTransform<boolean, unknown> | undefined | Spans 100% width of the container when enabled. |
855
- | appendTo | InputSignal<any> | 'self' | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
856
- | motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
812
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
813
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
814
+ | pt | TreeSelectPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
815
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
816
+ | required | boolean | false | There must be a value (if set). |
817
+ | invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
818
+ | disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
819
+ | name | string | undefined | When present, it specifies that the name of the input. |
820
+ | inputId | string | - | Identifier of the underlying input element. |
821
+ | scrollHeight | string | '400px' | Height of the viewport, a scrollbar is defined if height of list exceeds this value. |
822
+ | metaKeySelection | boolean | false | Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically. |
823
+ | display | "chip" \| "comma" | 'comma' | Defines how the selected items are displayed. |
824
+ | selectionMode | "multiple" \| "single" \| "checkbox" | 'single' | Defines the selection mode. |
825
+ | tabindex | string | '0' | Index of the element in tabbing order. |
826
+ | ariaLabel | string | - | Defines a string that labels the input for accessibility. |
827
+ | ariaLabelledBy | string | - | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
828
+ | togglerAriaLabel | string | - | Defines a string that labels the toggle button of the tree nodes for accessibility. |
829
+ | placeholder | string | - | Label to display when there are no selections. |
830
+ | panelClass | string \| string[] \| Set<string> \| { [klass: string]: any } | - | Style class of the overlay panel. |
831
+ | panelStyle | { [klass: string]: any } | - | Inline style of the panel element. |
832
+ | panelStyleClass | string | - | Style class of the panel element. |
833
+ | labelStyle | { [klass: string]: any } | - | Inline style of the label element. |
834
+ | labelStyleClass | string | - | Style class of the label element. |
835
+ | overlayOptions | OverlayOptions | - | Specifies the options for the overlay. |
836
+ | emptyMessage | string | '' | Text to display when there are no options available. Defaults to value from Exhaustive locale configuration. |
837
+ | filter | boolean | false | When specified, displays an input field to filter the items. |
838
+ | filterBy | string | 'label' | When filtering is enabled, filterBy decides which field or fields (comma separated) to search against. |
839
+ | filterMode | string | 'lenient' | Mode for filtering valid values are "lenient" and "strict". Default is lenient. |
840
+ | filterPlaceholder | string | - | Placeholder text to show when filter input is empty. |
841
+ | filterLocale | string | - | Locale to use in filtering. The default locale is the host environment's current locale. |
842
+ | filterInputAutoFocus | boolean | true | Determines whether the filter input should be automatically focused when the component is rendered. |
843
+ | propagateSelectionDown | boolean | true | Whether checkbox selections propagate to descendant nodes. |
844
+ | propagateSelectionUp | boolean | true | Whether checkbox selections propagate to ancestor nodes. |
845
+ | showClear | boolean | false | When enabled, a clear icon is displayed to clear the value. |
846
+ | resetFilterOnHide | boolean | true | Clears the filter value when hiding the dropdown. |
847
+ | virtualScroll | boolean | - | Whether the data should be loaded on demand during scroll. |
848
+ | virtualScrollItemSize | number | - | Height of an item in the list for VirtualScrolling. |
849
+ | virtualScrollOptions | ScrollerOptions | - | Whether to use the scroller feature. The properties of scroller component can be used like an object in it. |
850
+ | autofocus | boolean | - | When present, it specifies that the component should automatically get focus on load. |
851
+ | options | TreeNode<any>[] | undefined | An array of treenodes. |
852
+ | loading | boolean | - | Displays a loader to indicate data load is in progress. |
853
+ | loadingMode | "mask" \| "icon" | 'mask' | Loading mode display. |
854
+ | size | "small" \| "large" | undefined | Specifies the size of the component. |
855
+ | variant | "outlined" \| "filled" | undefined | Specifies the input variant of the component. |
856
+ | fluid | boolean | undefined | Spans 100% width of the container when enabled. |
857
+ | appendTo | any | 'self' | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
858
+ | motionOptions | MotionOptions | - | The motion options. |
857
859
 
858
860
  ### Emits
859
861