@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.
- package/data/cards/accordion.md +5 -2
- package/data/cards/animateonscroll.md +8 -5
- package/data/cards/autocomplete.md +8 -3
- package/data/cards/autofocus.md +4 -2
- package/data/cards/avatar.md +4 -2
- package/data/cards/badge.md +2 -1
- package/data/cards/breadcrumb.md +3 -1
- package/data/cards/button.md +8 -2
- package/data/cards/card.md +2 -1
- package/data/cards/carousel.md +7 -5
- package/data/cards/cascadeselect.md +2 -6
- package/data/cards/chart.md +9 -7
- package/data/cards/checkbox.md +4 -3
- package/data/cards/chip.md +2 -1
- package/data/cards/classnames.md +21 -3
- package/data/cards/colorpicker.md +2 -1
- package/data/cards/confirmdialog.md +35 -5
- package/data/cards/confirmpopup.md +25 -3
- package/data/cards/contextmenu.md +1 -7
- package/data/cards/dataview.md +28 -9
- package/data/cards/datepicker.md +4 -3
- package/data/cards/dialog.md +3 -3
- package/data/cards/divider.md +2 -1
- package/data/cards/dock.md +24 -3
- package/data/cards/dragdrop.md +5 -1
- package/data/cards/drawer.md +3 -3
- package/data/cards/dynamicdialog.md +41 -14
- package/data/cards/editor.md +1 -1
- package/data/cards/fieldset.md +2 -1
- package/data/cards/fileinput.md +1 -1
- package/data/cards/fileupload.md +7 -8
- package/data/cards/floatlabel.md +1 -1
- package/data/cards/fluid.md +7 -5
- package/data/cards/focustrap.md +6 -2
- package/data/cards/galleria.md +18 -25
- package/data/cards/iconfield.md +3 -2
- package/data/cards/iftalabel.md +1 -1
- package/data/cards/image.md +4 -2
- package/data/cards/imagecompare.md +4 -3
- package/data/cards/inplace.md +2 -1
- package/data/cards/inputgroup.md +14 -3
- package/data/cards/inputmask.md +2 -2
- package/data/cards/inputnumber.md +4 -3
- package/data/cards/inputotp.md +2 -2
- package/data/cards/inputtext.md +2 -2
- package/data/cards/keyfilter.md +2 -1
- package/data/cards/knob.md +3 -2
- package/data/cards/listbox.md +5 -3
- package/data/cards/megamenu.md +7 -8
- package/data/cards/menu.md +3 -7
- package/data/cards/menubar.md +3 -7
- package/data/cards/message.md +2 -1
- package/data/cards/metergroup.md +3 -7
- package/data/cards/multiselect.md +5 -9
- package/data/cards/orderlist.md +6 -4
- package/data/cards/organizationchart.md +33 -6
- package/data/cards/overlay.md +2 -1
- package/data/cards/paginator.md +2 -1
- package/data/cards/panel.md +2 -1
- package/data/cards/panelmenu.md +4 -13
- package/data/cards/password.md +6 -3
- package/data/cards/picklist.md +9 -5
- package/data/cards/popover.md +6 -5
- package/data/cards/progressbar.md +4 -3
- package/data/cards/progressspinner.md +2 -1
- package/data/cards/radiobutton.md +4 -3
- package/data/cards/rating.md +1 -1
- package/data/cards/ripple.md +2 -1
- package/data/cards/scrollpanel.md +2 -1
- package/data/cards/scrolltop.md +5 -3
- package/data/cards/select.md +2 -1
- package/data/cards/selectbutton.md +6 -2
- package/data/cards/skeleton.md +2 -1
- package/data/cards/slider.md +4 -3
- package/data/cards/speeddial.md +7 -4
- package/data/cards/splitbutton.md +21 -18
- package/data/cards/splitter.md +2 -1
- package/data/cards/stepper.md +8 -3
- package/data/cards/styleclass.md +4 -2
- package/data/cards/table.md +46 -11
- package/data/cards/tabs.md +2 -1
- package/data/cards/tag.md +2 -1
- package/data/cards/terminal.md +31 -22
- package/data/cards/textarea.md +3 -2
- package/data/cards/tieredmenu.md +1 -6
- package/data/cards/timeline.md +5 -5
- package/data/cards/toast.md +7 -8
- package/data/cards/togglebutton.md +1 -1
- package/data/cards/toggleswitch.md +4 -3
- package/data/cards/toolbar.md +8 -8
- package/data/cards/tooltip.md +2 -1
- package/data/cards/tree.md +3 -6
- package/data/cards/treeselect.md +6 -7
- package/data/cards/treetable.md +52 -31
- package/data/components/accordion.md +31 -23
- package/data/components/animateonscroll.md +18 -15
- package/data/components/autocomplete.md +162 -93
- package/data/components/autofocus.md +9 -7
- package/data/components/avatar.md +56 -43
- package/data/components/badge.md +27 -18
- package/data/components/blockui.md +15 -8
- package/data/components/breadcrumb.md +20 -14
- package/data/components/button.md +121 -94
- package/data/components/card.md +12 -10
- package/data/components/carousel.md +75 -53
- package/data/components/cascadeselect.md +271 -238
- package/data/components/chart.md +88 -74
- package/data/components/checkbox.md +107 -73
- package/data/components/chip.md +20 -16
- package/data/components/classnames.md +22 -4
- package/data/components/colorpicker.md +54 -36
- package/data/components/confirmdialog.md +146 -43
- package/data/components/confirmpopup.md +95 -22
- package/data/components/contextmenu.md +110 -39
- package/data/components/dataview.md +176 -83
- package/data/components/datepicker.md +171 -141
- package/data/components/dialog.md +80 -68
- package/data/components/divider.md +17 -12
- package/data/components/dock.md +63 -27
- package/data/components/dragdrop.md +26 -12
- package/data/components/drawer.md +67 -48
- package/data/components/dynamicdialog.md +22 -13
- package/data/components/editor.md +42 -33
- package/data/components/fieldset.md +20 -17
- package/data/components/fileinput.md +92 -35
- package/data/components/fileupload.md +101 -61
- package/data/components/floatlabel.md +20 -11
- package/data/components/fluid.md +11 -9
- package/data/components/focustrap.md +11 -7
- package/data/components/galleria.md +224 -83
- package/data/components/iconfield.md +23 -15
- package/data/components/iftalabel.md +15 -9
- package/data/components/image.md +31 -26
- package/data/components/imagecompare.md +8 -6
- package/data/components/inplace.md +27 -22
- package/data/components/inputgroup.md +53 -29
- package/data/components/inputmask.md +107 -85
- package/data/components/inputnumber.md +127 -89
- package/data/components/inputotp.md +55 -42
- package/data/components/inputtext.md +72 -50
- package/data/components/keyfilter.md +6 -3
- package/data/components/knob.md +70 -58
- package/data/components/listbox.md +171 -141
- package/data/components/megamenu.md +24 -23
- package/data/components/menu.md +37 -34
- package/data/components/menubar.md +27 -22
- package/data/components/message.md +44 -32
- package/data/components/metergroup.md +48 -17
- package/data/components/multiselect.md +232 -168
- package/data/components/orderlist.md +55 -48
- package/data/components/organizationchart.md +182 -13
- package/data/components/overlay.md +31 -26
- package/data/components/paginator.md +49 -34
- package/data/components/panel.md +23 -19
- package/data/components/panelmenu.md +51 -25
- package/data/components/password.md +104 -91
- package/data/components/picklist.md +92 -70
- package/data/components/popover.md +68 -46
- package/data/components/progressbar.md +28 -22
- package/data/components/progressspinner.md +13 -11
- package/data/components/radiobutton.md +69 -35
- package/data/components/rating.md +48 -40
- package/data/components/ripple.md +8 -6
- package/data/components/scroller.md +29 -29
- package/data/components/scrollpanel.md +9 -7
- package/data/components/scrolltop.md +20 -18
- package/data/components/select.md +248 -169
- package/data/components/selectbutton.md +118 -56
- package/data/components/skeleton.md +22 -18
- package/data/components/slider.md +73 -49
- package/data/components/speeddial.md +77 -59
- package/data/components/splitbutton.md +354 -329
- package/data/components/splitter.md +22 -18
- package/data/components/stepper.md +38 -21
- package/data/components/styleclass.md +12 -6
- package/data/components/table.md +523 -314
- package/data/components/tabs.md +44 -26
- package/data/components/tag.md +18 -14
- package/data/components/terminal.md +38 -27
- package/data/components/textarea.md +82 -47
- package/data/components/tieredmenu.md +34 -29
- package/data/components/timeline.md +29 -28
- package/data/components/toast.md +115 -57
- package/data/components/togglebutton.md +53 -39
- package/data/components/toggleswitch.md +41 -28
- package/data/components/toolbar.md +19 -18
- package/data/components/tooltip.md +43 -32
- package/data/components/tree.md +114 -81
- package/data/components/treeselect.md +176 -174
- package/data/components/treetable.md +1250 -1045
- package/data/components.json +4122 -4080
- package/data/llms-full.txt +8784 -6249
- package/data/manifest.json +154 -15
- package/data/pages/tailwind.md +20 -10
- package/data/snapshot.json +2 -2
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- 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.
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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: [
|
|
160
|
+
imports: [FormsModule, TreeSelectModule],
|
|
164
161
|
providers: [NodeService]
|
|
165
162
|
})
|
|
166
|
-
export class TreeselectFilledDemo
|
|
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,
|
|
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: [
|
|
193
|
+
imports: [FormsModule, TreeSelectModule],
|
|
198
194
|
providers: [NodeService]
|
|
199
195
|
})
|
|
200
|
-
export class TreeselectFilterDemo
|
|
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,
|
|
214
|
+
import { Component, inject } from '@angular/core';
|
|
220
215
|
import { FormsModule } from '@angular/forms';
|
|
221
|
-
import {
|
|
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: [
|
|
239
|
+
imports: [FormsModule, RouterModule, TreeSelectModule, FloatLabelModule],
|
|
244
240
|
providers: [NodeService]
|
|
245
241
|
})
|
|
246
|
-
export class TreeselectFloatlabelDemo
|
|
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,
|
|
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
|
|
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,
|
|
298
|
+
import { Component, inject } from '@angular/core';
|
|
302
299
|
import { FormsModule } from '@angular/forms';
|
|
303
|
-
import {
|
|
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: [
|
|
315
|
+
imports: [FormsModule, RouterModule, TreeSelectModule, IftaLabelModule],
|
|
318
316
|
providers: [NodeService]
|
|
319
317
|
})
|
|
320
|
-
export class TreeselectIftalabelDemo
|
|
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,
|
|
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: [
|
|
349
|
+
imports: [FormsModule, TreeSelectModule],
|
|
353
350
|
providers: [NodeService]
|
|
354
351
|
})
|
|
355
|
-
export class TreeselectInvalidDemo
|
|
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,
|
|
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: [
|
|
395
|
+
imports: [FormsModule, TreeSelectModule]
|
|
399
396
|
})
|
|
400
|
-
export class TreeselectLazyDemo
|
|
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,
|
|
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
|
|
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,
|
|
498
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
499
|
-
import {
|
|
500
|
-
import {
|
|
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: [
|
|
523
|
-
providers: [NodeService]
|
|
521
|
+
imports: [CommonModule, ReactiveFormsModule, TreeSelectModule, ButtonModule, ToastModule, MessageModule],
|
|
522
|
+
providers: [MessageService, NodeService]
|
|
524
523
|
})
|
|
525
|
-
export class TreeselectReactiveformsDemo
|
|
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
|
-
|
|
535
|
-
|
|
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,
|
|
564
|
+
import { Component, inject, signal } from '@angular/core';
|
|
564
565
|
import { form, FormField, required, submit } from '@angular/forms/signals';
|
|
565
|
-
import {
|
|
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: [
|
|
590
|
-
providers: [NodeService]
|
|
590
|
+
imports: [FormField, TreeSelectModule, ButtonModule, ToastModule, MessageModule],
|
|
591
|
+
providers: [MessageService, NodeService]
|
|
591
592
|
})
|
|
592
|
-
export class TreeselectSignalformsDemo
|
|
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,
|
|
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: [
|
|
639
|
+
imports: [FormsModule, TreeSelectModule],
|
|
638
640
|
providers: [NodeService]
|
|
639
641
|
})
|
|
640
|
-
export class TreeselectSizesDemo
|
|
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,
|
|
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: [
|
|
690
|
+
imports: [FormsModule, TreeSelectModule, ButtonModule],
|
|
688
691
|
providers: [NodeService]
|
|
689
692
|
})
|
|
690
|
-
export class TreeselectTemplateDemo
|
|
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,
|
|
709
|
+
import { Component, inject } from '@angular/core';
|
|
708
710
|
import { FormsModule } from '@angular/forms';
|
|
709
|
-
import {
|
|
710
|
-
import {
|
|
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: [
|
|
733
|
-
providers: [NodeService]
|
|
735
|
+
imports: [CommonModule, FormsModule, TreeSelectModule, ButtonModule, ToastModule, MessageModule],
|
|
736
|
+
providers: [MessageService, NodeService]
|
|
734
737
|
})
|
|
735
|
-
export class TreeselectTemplatedrivenformsDemo
|
|
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,
|
|
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: [
|
|
788
|
+
imports: [FormsModule, TreeSelectModule],
|
|
786
789
|
providers: [NodeService]
|
|
787
790
|
})
|
|
788
|
-
export class TreeselectVirtualscrollDemo
|
|
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 |
|
|
811
|
-
| unstyled |
|
|
812
|
-
| pt |
|
|
813
|
-
| ptOptions |
|
|
814
|
-
| required |
|
|
815
|
-
| invalid |
|
|
816
|
-
| disabled |
|
|
817
|
-
| name |
|
|
818
|
-
| inputId |
|
|
819
|
-
| scrollHeight |
|
|
820
|
-
| metaKeySelection |
|
|
821
|
-
| display |
|
|
822
|
-
| selectionMode |
|
|
823
|
-
| tabindex |
|
|
824
|
-
| ariaLabel |
|
|
825
|
-
| ariaLabelledBy |
|
|
826
|
-
| togglerAriaLabel |
|
|
827
|
-
| placeholder |
|
|
828
|
-
| panelClass |
|
|
829
|
-
| panelStyle |
|
|
830
|
-
| panelStyleClass |
|
|
831
|
-
| labelStyle |
|
|
832
|
-
| labelStyleClass |
|
|
833
|
-
| overlayOptions |
|
|
834
|
-
| emptyMessage |
|
|
835
|
-
| filter |
|
|
836
|
-
| filterBy |
|
|
837
|
-
| filterMode |
|
|
838
|
-
| filterPlaceholder |
|
|
839
|
-
| filterLocale |
|
|
840
|
-
| filterInputAutoFocus |
|
|
841
|
-
| propagateSelectionDown |
|
|
842
|
-
| propagateSelectionUp |
|
|
843
|
-
| showClear |
|
|
844
|
-
| resetFilterOnHide |
|
|
845
|
-
| virtualScroll |
|
|
846
|
-
| virtualScrollItemSize |
|
|
847
|
-
| virtualScrollOptions |
|
|
848
|
-
| autofocus |
|
|
849
|
-
| options |
|
|
850
|
-
| loading |
|
|
851
|
-
| loadingMode |
|
|
852
|
-
| size |
|
|
853
|
-
| variant |
|
|
854
|
-
| fluid |
|
|
855
|
-
| appendTo |
|
|
856
|
-
| motionOptions |
|
|
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
|
|