@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,7 +4,7 @@ Select is used to choose an item from a collection of options.
|
|
|
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 select element has a combobox role in addition to aria-haspopup and aria-expanded attributes. If the editable option is enabled aria-autocomplete is also added. The relation between the combobox and the popup is created with aria-controls and aria-activedescendant attribute is used to instruct screen reader which option to read during keyboard navigation within the popup list. The popup list has an id that refers to the aria-controls attribute of the combobox element and uses listbox as the role. Each list item has an option role, an id to match the aria-activedescendant of the input element along with aria-label , aria-selected and aria-disabled attributes. If filtering is enabled,
|
|
7
|
+
Screen Reader Value to describe the component can either be provided with ariaLabelledBy or ariaLabel props. The select element has a combobox role in addition to aria-haspopup and aria-expanded attributes. If the editable option is enabled aria-autocomplete is also added. The relation between the combobox and the popup is created with aria-controls and aria-activedescendant attribute is used to instruct screen reader which option to read during keyboard navigation within the popup list. The popup list has an id that refers to the aria-controls attribute of the combobox element and uses listbox as the role. Each list item has an option role, an id to match the aria-activedescendant of the input element along with aria-label , aria-selected and aria-disabled attributes. If filtering is enabled, ariaFilterLabel can be defined to give an aria-label to the filter input element.
|
|
8
8
|
|
|
9
9
|
## Basic
|
|
10
10
|
|
|
@@ -27,10 +27,11 @@ interface City {
|
|
|
27
27
|
</div>
|
|
28
28
|
`,
|
|
29
29
|
standalone: true,
|
|
30
|
-
imports: [
|
|
30
|
+
imports: [FormsModule, SelectModule]
|
|
31
31
|
})
|
|
32
32
|
export class SelectBasicDemo implements OnInit {
|
|
33
33
|
cities: City[];
|
|
34
|
+
|
|
34
35
|
selectedCity: City | undefined;
|
|
35
36
|
|
|
36
37
|
ngOnInit() {
|
|
@@ -66,10 +67,11 @@ interface City {
|
|
|
66
67
|
</div>
|
|
67
68
|
`,
|
|
68
69
|
standalone: true,
|
|
69
|
-
imports: [
|
|
70
|
+
imports: [FormsModule, SelectModule]
|
|
70
71
|
})
|
|
71
72
|
export class SelectCheckmarkDemo implements OnInit {
|
|
72
73
|
cities: City[];
|
|
74
|
+
|
|
73
75
|
selectedCity: City | undefined;
|
|
74
76
|
|
|
75
77
|
ngOnInit() {
|
|
@@ -91,7 +93,7 @@ When showClear is enabled, a clear icon is displayed to clear the value.
|
|
|
91
93
|
```typescript
|
|
92
94
|
import { Component, OnInit } from '@angular/core';
|
|
93
95
|
import { FormsModule } from '@angular/forms';
|
|
94
|
-
import {
|
|
96
|
+
import { Select } from '@exhaustive-ui/core/select';
|
|
95
97
|
|
|
96
98
|
interface City {
|
|
97
99
|
name: string;
|
|
@@ -105,10 +107,11 @@ interface City {
|
|
|
105
107
|
</div>
|
|
106
108
|
`,
|
|
107
109
|
standalone: true,
|
|
108
|
-
imports: [
|
|
110
|
+
imports: [FormsModule, Select]
|
|
109
111
|
})
|
|
110
112
|
export class SelectCleariconDemo implements OnInit {
|
|
111
113
|
cities: City[];
|
|
114
|
+
|
|
112
115
|
selectedCity: City | undefined;
|
|
113
116
|
|
|
114
117
|
ngOnInit() {
|
|
@@ -125,16 +128,18 @@ export class SelectCleariconDemo implements OnInit {
|
|
|
125
128
|
|
|
126
129
|
## customfilter-doc
|
|
127
130
|
|
|
128
|
-
Custom filter can be applied with the
|
|
131
|
+
Custom filter can be applied with the filter template.
|
|
129
132
|
|
|
130
133
|
```typescript
|
|
131
134
|
import { Component, OnInit } from '@angular/core';
|
|
132
135
|
import { FormsModule } from '@angular/forms';
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
136
|
+
import { CommonModule } from '@angular/common';
|
|
137
|
+
import { SelectFilterOptions } from '@exhaustive-ui/core/select';
|
|
135
138
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
139
|
+
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
140
|
+
import { InputGroupAddonModule } from '@exhaustive-ui/core/inputgroupaddon';
|
|
141
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
136
142
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
137
|
-
import { Country } from '@/domain/customer';
|
|
138
143
|
|
|
139
144
|
interface City {
|
|
140
145
|
name: string;
|
|
@@ -145,7 +150,7 @@ interface City {
|
|
|
145
150
|
template: `
|
|
146
151
|
<div class="card flex justify-center">
|
|
147
152
|
<p-select [options]="countries" [(ngModel)]="selectedCountry" optionLabel="name" [filter]="true" filterBy="name" [showClear]="true" placeholder="Select a Country">
|
|
148
|
-
<ng-template
|
|
153
|
+
<ng-template #filter let-options="options">
|
|
149
154
|
<div class="flex gap-1">
|
|
150
155
|
<p-input-group (click)="$event.stopPropagation()">
|
|
151
156
|
<p-input-group-addon><i class="pi pi-search"></i></p-input-group-addon>
|
|
@@ -154,13 +159,13 @@ interface City {
|
|
|
154
159
|
<p-button icon="pi pi-times" (click)="resetFunction(options)" severity="secondary" />
|
|
155
160
|
</div>
|
|
156
161
|
</ng-template>
|
|
157
|
-
<ng-template
|
|
162
|
+
<ng-template #selectedItem let-selectedOption>
|
|
158
163
|
<div class="flex items-center gap-2">
|
|
159
164
|
<img src="https://exhaustive-ui.com/demo/flag/flag_placeholder.png" [class]="'flag flag-' + selectedCountry.code.toLowerCase()" style="width: 18px" />
|
|
160
165
|
<div>{{ selectedOption.name }}</div>
|
|
161
166
|
</div>
|
|
162
167
|
</ng-template>
|
|
163
|
-
<ng-template let-country
|
|
168
|
+
<ng-template let-country #item>
|
|
164
169
|
<div class="flex items-center gap-2">
|
|
165
170
|
<img src="https://exhaustive-ui.com/demo/flag/flag_placeholder.png" [class]="'flag flag-' + country.code.toLowerCase()" style="width: 18px" />
|
|
166
171
|
<div>{{ country.name }}</div>
|
|
@@ -170,11 +175,13 @@ interface City {
|
|
|
170
175
|
</div>
|
|
171
176
|
`,
|
|
172
177
|
standalone: true,
|
|
173
|
-
imports: [
|
|
178
|
+
imports: [CommonModule, FormsModule, SelectModule, InputGroupModule, InputGroupAddonModule, ButtonModule, InputTextModule]
|
|
174
179
|
})
|
|
175
180
|
export class SelectCustomfilterDemo implements OnInit {
|
|
176
181
|
countries: City[] | undefined;
|
|
182
|
+
|
|
177
183
|
selectedCountry: string | undefined;
|
|
184
|
+
|
|
178
185
|
filterValue: string | undefined = '';
|
|
179
186
|
|
|
180
187
|
ngOnInit() {
|
|
@@ -208,7 +215,7 @@ export class SelectCustomfilterDemo implements OnInit {
|
|
|
208
215
|
When disabled is present, the element cannot be edited and focused.
|
|
209
216
|
|
|
210
217
|
```typescript
|
|
211
|
-
import { Component
|
|
218
|
+
import { Component } from '@angular/core';
|
|
212
219
|
import { FormsModule } from '@angular/forms';
|
|
213
220
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
214
221
|
|
|
@@ -224,10 +231,11 @@ interface City {
|
|
|
224
231
|
</div>
|
|
225
232
|
`,
|
|
226
233
|
standalone: true,
|
|
227
|
-
imports: [
|
|
234
|
+
imports: [FormsModule, SelectModule]
|
|
228
235
|
})
|
|
229
|
-
export class SelectDisabledDemo
|
|
236
|
+
export class SelectDisabledDemo {
|
|
230
237
|
cities: City[] | undefined;
|
|
238
|
+
|
|
231
239
|
selectedCity: City | undefined;
|
|
232
240
|
|
|
233
241
|
ngOnInit() {
|
|
@@ -263,10 +271,11 @@ interface City {
|
|
|
263
271
|
</div>
|
|
264
272
|
`,
|
|
265
273
|
standalone: true,
|
|
266
|
-
imports: [
|
|
274
|
+
imports: [FormsModule, SelectModule]
|
|
267
275
|
})
|
|
268
276
|
export class SelectEditableDemo implements OnInit {
|
|
269
277
|
cities: City[] | undefined;
|
|
278
|
+
|
|
270
279
|
selectedCity: City | undefined;
|
|
271
280
|
|
|
272
281
|
ngOnInit() {
|
|
@@ -302,10 +311,11 @@ interface City {
|
|
|
302
311
|
</div>
|
|
303
312
|
`,
|
|
304
313
|
standalone: true,
|
|
305
|
-
imports: [
|
|
314
|
+
imports: [FormsModule, SelectModule]
|
|
306
315
|
})
|
|
307
316
|
export class SelectFilledDemo implements OnInit {
|
|
308
317
|
cities: City[];
|
|
318
|
+
|
|
309
319
|
selectedCity: City | undefined;
|
|
310
320
|
|
|
311
321
|
ngOnInit() {
|
|
@@ -327,8 +337,8 @@ Select provides built-in filtering that is enabled by adding the filter property
|
|
|
327
337
|
```typescript
|
|
328
338
|
import { Component, OnInit } from '@angular/core';
|
|
329
339
|
import { FormsModule } from '@angular/forms';
|
|
340
|
+
import { CommonModule } from '@angular/common';
|
|
330
341
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
331
|
-
import { Country } from '@/domain/customer';
|
|
332
342
|
|
|
333
343
|
@Component({
|
|
334
344
|
template: `
|
|
@@ -350,11 +360,12 @@ import { Country } from '@/domain/customer';
|
|
|
350
360
|
</div>
|
|
351
361
|
`,
|
|
352
362
|
standalone: true,
|
|
353
|
-
imports: [
|
|
363
|
+
imports: [CommonModule, FormsModule, SelectModule]
|
|
354
364
|
})
|
|
355
365
|
export class SelectFilterDemo implements OnInit {
|
|
356
366
|
countries: any[] | undefined;
|
|
357
|
-
|
|
367
|
+
|
|
368
|
+
selectedCountry: any | undefined;
|
|
358
369
|
|
|
359
370
|
ngOnInit() {
|
|
360
371
|
this.countries = [
|
|
@@ -380,8 +391,9 @@ A floating label appears on top of the input field when focused. Visit FloatLabe
|
|
|
380
391
|
```typescript
|
|
381
392
|
import { Component, OnInit } from '@angular/core';
|
|
382
393
|
import { FormsModule } from '@angular/forms';
|
|
383
|
-
import {
|
|
394
|
+
import { RouterModule } from '@angular/router';
|
|
384
395
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
396
|
+
import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
|
|
385
397
|
|
|
386
398
|
interface City {
|
|
387
399
|
name: string;
|
|
@@ -406,12 +418,15 @@ interface City {
|
|
|
406
418
|
</div>
|
|
407
419
|
`,
|
|
408
420
|
standalone: true,
|
|
409
|
-
imports: [
|
|
421
|
+
imports: [FormsModule, SelectModule, FloatLabelModule, RouterModule]
|
|
410
422
|
})
|
|
411
423
|
export class SelectFloatlabelDemo implements OnInit {
|
|
412
424
|
cities: City[] | undefined;
|
|
425
|
+
|
|
413
426
|
value1: City | undefined;
|
|
427
|
+
|
|
414
428
|
value2: City | undefined;
|
|
429
|
+
|
|
415
430
|
value3: City | undefined;
|
|
416
431
|
|
|
417
432
|
ngOnInit() {
|
|
@@ -447,10 +462,11 @@ interface City {
|
|
|
447
462
|
</div>
|
|
448
463
|
`,
|
|
449
464
|
standalone: true,
|
|
450
|
-
imports: [
|
|
465
|
+
imports: [FormsModule, SelectModule]
|
|
451
466
|
})
|
|
452
467
|
export class SelectFluidDemo implements OnInit {
|
|
453
468
|
cities: City[];
|
|
469
|
+
|
|
454
470
|
selectedCity: City | undefined;
|
|
455
471
|
|
|
456
472
|
ngOnInit() {
|
|
@@ -472,8 +488,9 @@ Options can be grouped when a nested data structures is provided.
|
|
|
472
488
|
```typescript
|
|
473
489
|
import { Component } from '@angular/core';
|
|
474
490
|
import { FormsModule } from '@angular/forms';
|
|
475
|
-
import {
|
|
491
|
+
import { CommonModule } from '@angular/common';
|
|
476
492
|
import { SelectItemGroup } from '@exhaustive-ui/core/api';
|
|
493
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
477
494
|
|
|
478
495
|
@Component({
|
|
479
496
|
template: `
|
|
@@ -489,45 +506,46 @@ import { SelectItemGroup } from '@exhaustive-ui/core/api';
|
|
|
489
506
|
</div>
|
|
490
507
|
`,
|
|
491
508
|
standalone: true,
|
|
492
|
-
imports: [
|
|
509
|
+
imports: [CommonModule, FormsModule, SelectModule]
|
|
493
510
|
})
|
|
494
511
|
export class SelectGroupDemo {
|
|
495
512
|
groupedCities: SelectItemGroup[];
|
|
513
|
+
|
|
496
514
|
selectedCity: string | undefined;
|
|
497
515
|
|
|
498
516
|
constructor() {
|
|
499
517
|
this.groupedCities = [
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
518
|
+
{
|
|
519
|
+
label: 'Germany',
|
|
520
|
+
value: 'de',
|
|
521
|
+
items: [
|
|
522
|
+
{ label: 'Berlin', value: 'Berlin' },
|
|
523
|
+
{ label: 'Frankfurt', value: 'Frankfurt' },
|
|
524
|
+
{ label: 'Hamburg', value: 'Hamburg' },
|
|
525
|
+
{ label: 'Munich', value: 'Munich' }
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
label: 'USA',
|
|
530
|
+
value: 'us',
|
|
531
|
+
items: [
|
|
532
|
+
{ label: 'Chicago', value: 'Chicago' },
|
|
533
|
+
{ label: 'Los Angeles', value: 'Los Angeles' },
|
|
534
|
+
{ label: 'New York', value: 'New York' },
|
|
535
|
+
{ label: 'San Francisco', value: 'San Francisco' }
|
|
536
|
+
]
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
label: 'Japan',
|
|
540
|
+
value: 'jp',
|
|
541
|
+
items: [
|
|
542
|
+
{ label: 'Kyoto', value: 'Kyoto' },
|
|
543
|
+
{ label: 'Osaka', value: 'Osaka' },
|
|
544
|
+
{ label: 'Tokyo', value: 'Tokyo' },
|
|
545
|
+
{ label: 'Yokohama', value: 'Yokohama' }
|
|
546
|
+
]
|
|
547
|
+
}
|
|
548
|
+
];
|
|
531
549
|
}
|
|
532
550
|
}
|
|
533
551
|
```
|
|
@@ -539,8 +557,9 @@ IftaLabel is used to create infield top aligned labels. Visit IftaLabel document
|
|
|
539
557
|
```typescript
|
|
540
558
|
import { Component, OnInit } from '@angular/core';
|
|
541
559
|
import { FormsModule } from '@angular/forms';
|
|
542
|
-
import {
|
|
560
|
+
import { RouterModule } from '@angular/router';
|
|
543
561
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
562
|
+
import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
544
563
|
|
|
545
564
|
interface City {
|
|
546
565
|
name: string;
|
|
@@ -557,10 +576,11 @@ interface City {
|
|
|
557
576
|
</div>
|
|
558
577
|
`,
|
|
559
578
|
standalone: true,
|
|
560
|
-
imports: [
|
|
579
|
+
imports: [FormsModule, SelectModule, IftaLabelModule, RouterModule]
|
|
561
580
|
})
|
|
562
581
|
export class SelectIftalabelDemo implements OnInit {
|
|
563
582
|
cities: City[] | undefined;
|
|
583
|
+
|
|
564
584
|
selectedCity: City | undefined;
|
|
565
585
|
|
|
566
586
|
ngOnInit() {
|
|
@@ -597,14 +617,24 @@ interface City {
|
|
|
597
617
|
</div>
|
|
598
618
|
`,
|
|
599
619
|
standalone: true,
|
|
600
|
-
imports: [
|
|
620
|
+
imports: [FormsModule, SelectModule]
|
|
601
621
|
})
|
|
602
622
|
export class SelectInvalidDemo {
|
|
603
|
-
cities: City[]
|
|
623
|
+
cities: City[] = [
|
|
624
|
+
{ name: 'New York', code: 'NY' },
|
|
625
|
+
{ name: 'Rome', code: 'RM' },
|
|
626
|
+
{ name: 'London', code: 'LDN' },
|
|
627
|
+
{ name: 'Istanbul', code: 'IST' },
|
|
628
|
+
{ name: 'Paris', code: 'PRS' }
|
|
629
|
+
];
|
|
630
|
+
|
|
604
631
|
selectedCity1: City | undefined;
|
|
632
|
+
|
|
605
633
|
selectedCity2: City | undefined;
|
|
606
|
-
|
|
607
|
-
|
|
634
|
+
|
|
635
|
+
value1 = true;
|
|
636
|
+
|
|
637
|
+
value2 = true;
|
|
608
638
|
}
|
|
609
639
|
```
|
|
610
640
|
|
|
@@ -613,8 +643,8 @@ export class SelectInvalidDemo {
|
|
|
613
643
|
```typescript
|
|
614
644
|
import { Component } from '@angular/core';
|
|
615
645
|
import { FormsModule } from '@angular/forms';
|
|
646
|
+
import { ScrollerOptions, SelectItem } from '@exhaustive-ui/core/api';
|
|
616
647
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
617
|
-
import { SelectItem } from '@exhaustive-ui/core/api';
|
|
618
648
|
|
|
619
649
|
@Component({
|
|
620
650
|
template: `
|
|
@@ -623,39 +653,47 @@ import { SelectItem } from '@exhaustive-ui/core/api';
|
|
|
623
653
|
</div>
|
|
624
654
|
`,
|
|
625
655
|
standalone: true,
|
|
626
|
-
imports: [
|
|
656
|
+
imports: [FormsModule, SelectModule]
|
|
627
657
|
})
|
|
628
658
|
export class SelectLazyvirtualscrollDemo {
|
|
629
659
|
items: SelectItem[];
|
|
660
|
+
|
|
630
661
|
selectedItem: string | undefined;
|
|
662
|
+
|
|
631
663
|
loading: boolean = false;
|
|
632
|
-
|
|
633
|
-
|
|
664
|
+
|
|
665
|
+
loadLazyTimeout = null;
|
|
666
|
+
|
|
667
|
+
options: ScrollerOptions = {
|
|
668
|
+
delay: 250,
|
|
669
|
+
showLoader: true,
|
|
670
|
+
lazy: true,
|
|
671
|
+
onLazyLoad: this.onLazyLoad.bind(this)
|
|
672
|
+
};
|
|
634
673
|
|
|
635
674
|
constructor() {
|
|
636
675
|
this.items = [];
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
676
|
+
for (let i = 0; i < 10000; i++) {
|
|
677
|
+
this.items.push({ label: 'Item ' + i, value: 'Item ' + i });
|
|
678
|
+
}
|
|
640
679
|
}
|
|
641
|
-
|
|
642
680
|
onLazyLoad(event) {
|
|
643
681
|
this.loading = true;
|
|
644
|
-
|
|
682
|
+
|
|
645
683
|
if (this.loadLazyTimeout) {
|
|
646
684
|
clearTimeout(this.loadLazyTimeout);
|
|
647
685
|
}
|
|
648
|
-
|
|
686
|
+
|
|
649
687
|
//imitate delay of a backend call
|
|
650
688
|
this.loadLazyTimeout = setTimeout(
|
|
651
689
|
() => {
|
|
652
690
|
const { first, last } = event;
|
|
653
691
|
const items = [...this.items];
|
|
654
|
-
|
|
692
|
+
|
|
655
693
|
for (let i = first; i < last; i++) {
|
|
656
694
|
items[i] = { label: `Item #${i}`, value: i };
|
|
657
695
|
}
|
|
658
|
-
|
|
696
|
+
|
|
659
697
|
this.items = items;
|
|
660
698
|
this.loading = false;
|
|
661
699
|
},
|
|
@@ -686,10 +724,11 @@ interface City {
|
|
|
686
724
|
</div>
|
|
687
725
|
`,
|
|
688
726
|
standalone: true,
|
|
689
|
-
imports: [
|
|
727
|
+
imports: [FormsModule, SelectModule]
|
|
690
728
|
})
|
|
691
729
|
export class SelectLoadingstateDemo implements OnInit {
|
|
692
730
|
cities: City[];
|
|
731
|
+
|
|
693
732
|
selectedCity: City | undefined;
|
|
694
733
|
|
|
695
734
|
ngOnInit() {
|
|
@@ -710,12 +749,14 @@ Select can also be used with reactive forms. In this case, the formControlName p
|
|
|
710
749
|
|
|
711
750
|
```typescript
|
|
712
751
|
import { Component, inject } from '@angular/core';
|
|
752
|
+
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
|
713
753
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
714
|
-
import {
|
|
754
|
+
import { CommonModule } from '@angular/common';
|
|
755
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
715
756
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
716
757
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
758
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
717
759
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
718
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
719
760
|
|
|
720
761
|
interface City {
|
|
721
762
|
name: string;
|
|
@@ -738,18 +779,30 @@ interface City {
|
|
|
738
779
|
</div>
|
|
739
780
|
`,
|
|
740
781
|
standalone: true,
|
|
741
|
-
imports: [
|
|
782
|
+
imports: [CommonModule, ReactiveFormsModule, SelectModule, ToastModule, MessageModule, ButtonModule],
|
|
783
|
+
providers: [MessageService]
|
|
742
784
|
})
|
|
743
785
|
export class SelectReactiveformsDemo {
|
|
786
|
+
private fb = inject(FormBuilder);
|
|
787
|
+
|
|
744
788
|
messageService = inject(MessageService);
|
|
745
|
-
|
|
789
|
+
|
|
790
|
+
cities: City[] = [
|
|
791
|
+
{ name: 'New York', code: 'NY' },
|
|
792
|
+
{ name: 'Rome', code: 'RM' },
|
|
793
|
+
{ name: 'London', code: 'LDN' },
|
|
794
|
+
{ name: 'Istanbul', code: 'IST' },
|
|
795
|
+
{ name: 'Paris', code: 'PRS' }
|
|
796
|
+
];
|
|
797
|
+
|
|
746
798
|
exampleForm: FormGroup | undefined;
|
|
747
|
-
|
|
799
|
+
|
|
800
|
+
formSubmitted = false;
|
|
748
801
|
|
|
749
802
|
constructor() {
|
|
750
803
|
this.exampleForm = this.fb.group({
|
|
751
|
-
|
|
752
|
-
|
|
804
|
+
city: ['', Validators.required]
|
|
805
|
+
});
|
|
753
806
|
}
|
|
754
807
|
|
|
755
808
|
onSubmit() {
|
|
@@ -775,11 +828,11 @@ Select can also be used with Angular Signal Forms , the @angular/forms/signals A
|
|
|
775
828
|
```typescript
|
|
776
829
|
import { Component, inject, signal } from '@angular/core';
|
|
777
830
|
import { form, FormField, required, submit } from '@angular/forms/signals';
|
|
778
|
-
import {
|
|
831
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
779
832
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
780
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
781
833
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
782
|
-
import {
|
|
834
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
835
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
783
836
|
|
|
784
837
|
interface City {
|
|
785
838
|
name: string;
|
|
@@ -803,12 +856,22 @@ interface City {
|
|
|
803
856
|
</div>
|
|
804
857
|
`,
|
|
805
858
|
standalone: true,
|
|
806
|
-
imports: [
|
|
859
|
+
imports: [FormField, SelectModule, ButtonModule, ToastModule, MessageModule],
|
|
860
|
+
providers: [MessageService]
|
|
807
861
|
})
|
|
808
862
|
export class SelectSignalformsDemo {
|
|
809
863
|
messageService = inject(MessageService);
|
|
810
|
-
|
|
864
|
+
|
|
865
|
+
cities: City[] = [
|
|
866
|
+
{ name: 'New York', code: 'NY' },
|
|
867
|
+
{ name: 'Rome', code: 'RM' },
|
|
868
|
+
{ name: 'London', code: 'LDN' },
|
|
869
|
+
{ name: 'Istanbul', code: 'IST' },
|
|
870
|
+
{ name: 'Paris', code: 'PRS' }
|
|
871
|
+
];
|
|
872
|
+
|
|
811
873
|
model = signal<{ city: City | null }>({ city: null });
|
|
874
|
+
|
|
812
875
|
exampleForm = form(this.model, (f) => {
|
|
813
876
|
required(f.city);
|
|
814
877
|
});
|
|
@@ -846,12 +909,15 @@ interface City {
|
|
|
846
909
|
</div>
|
|
847
910
|
`,
|
|
848
911
|
standalone: true,
|
|
849
|
-
imports: [
|
|
912
|
+
imports: [FormsModule, SelectModule]
|
|
850
913
|
})
|
|
851
914
|
export class SelectSizesDemo implements OnInit {
|
|
852
915
|
value1: City | undefined;
|
|
916
|
+
|
|
853
917
|
value2: City | undefined;
|
|
918
|
+
|
|
854
919
|
value3: City | undefined;
|
|
920
|
+
|
|
855
921
|
cities: City[];
|
|
856
922
|
|
|
857
923
|
ngOnInit() {
|
|
@@ -873,8 +939,9 @@ Both the selected option and the options list can be templated to provide custom
|
|
|
873
939
|
```typescript
|
|
874
940
|
import { Component, OnInit } from '@angular/core';
|
|
875
941
|
import { FormsModule } from '@angular/forms';
|
|
876
|
-
import {
|
|
942
|
+
import { CommonModule } from '@angular/common';
|
|
877
943
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
944
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
878
945
|
|
|
879
946
|
@Component({
|
|
880
947
|
template: `
|
|
@@ -907,10 +974,11 @@ import { SelectModule } from '@exhaustive-ui/core/select';
|
|
|
907
974
|
</div>
|
|
908
975
|
`,
|
|
909
976
|
standalone: true,
|
|
910
|
-
imports: [
|
|
977
|
+
imports: [CommonModule, FormsModule, SelectModule, ButtonModule]
|
|
911
978
|
})
|
|
912
979
|
export class SelectTemplateDemo implements OnInit {
|
|
913
980
|
countries: any[] | undefined;
|
|
981
|
+
|
|
914
982
|
selectedCountry: string | undefined;
|
|
915
983
|
|
|
916
984
|
ngOnInit() {
|
|
@@ -935,11 +1003,12 @@ export class SelectTemplateDemo implements OnInit {
|
|
|
935
1003
|
```typescript
|
|
936
1004
|
import { Component, inject } from '@angular/core';
|
|
937
1005
|
import { FormsModule } from '@angular/forms';
|
|
938
|
-
import {
|
|
1006
|
+
import { CommonModule } from '@angular/common';
|
|
1007
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
939
1008
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
940
1009
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
1010
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
941
1011
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
942
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
943
1012
|
|
|
944
1013
|
interface City {
|
|
945
1014
|
name: string;
|
|
@@ -972,11 +1041,20 @@ interface City {
|
|
|
972
1041
|
</div>
|
|
973
1042
|
`,
|
|
974
1043
|
standalone: true,
|
|
975
|
-
imports: [
|
|
1044
|
+
imports: [CommonModule, FormsModule, SelectModule, ToastModule, MessageModule, ButtonModule, CommonModule],
|
|
1045
|
+
providers: [MessageService]
|
|
976
1046
|
})
|
|
977
1047
|
export class SelectTemplatedrivenformsDemo {
|
|
978
1048
|
messageService = inject(MessageService);
|
|
979
|
-
|
|
1049
|
+
|
|
1050
|
+
cities: City[] = [
|
|
1051
|
+
{ name: 'New York', code: 'NY' },
|
|
1052
|
+
{ name: 'Rome', code: 'RM' },
|
|
1053
|
+
{ name: 'London', code: 'LDN' },
|
|
1054
|
+
{ name: 'Istanbul', code: 'IST' },
|
|
1055
|
+
{ name: 'Paris', code: 'PRS' }
|
|
1056
|
+
];
|
|
1057
|
+
|
|
980
1058
|
selectedCity: City | undefined;
|
|
981
1059
|
|
|
982
1060
|
onSubmit(form: any) {
|
|
@@ -995,8 +1073,8 @@ VirtualScrolling is an efficient way of rendering the options by displaying a sm
|
|
|
995
1073
|
```typescript
|
|
996
1074
|
import { Component } from '@angular/core';
|
|
997
1075
|
import { FormsModule } from '@angular/forms';
|
|
998
|
-
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
999
1076
|
import { SelectItem } from '@exhaustive-ui/core/api';
|
|
1077
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
1000
1078
|
|
|
1001
1079
|
@Component({
|
|
1002
1080
|
template: `
|
|
@@ -1005,17 +1083,18 @@ import { SelectItem } from '@exhaustive-ui/core/api';
|
|
|
1005
1083
|
</div>
|
|
1006
1084
|
`,
|
|
1007
1085
|
standalone: true,
|
|
1008
|
-
imports: [
|
|
1086
|
+
imports: [FormsModule, SelectModule]
|
|
1009
1087
|
})
|
|
1010
1088
|
export class SelectVirtualscrollDemo {
|
|
1011
1089
|
items: SelectItem[];
|
|
1090
|
+
|
|
1012
1091
|
selectedItem: string | undefined;
|
|
1013
1092
|
|
|
1014
1093
|
constructor() {
|
|
1015
1094
|
this.items = [];
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1095
|
+
for (let i = 0; i < 10000; i++) {
|
|
1096
|
+
this.items.push({ label: 'Item ' + i, value: 'Item ' + i });
|
|
1097
|
+
}
|
|
1019
1098
|
}
|
|
1020
1099
|
}
|
|
1021
1100
|
```
|
|
@@ -1028,75 +1107,75 @@ Select is used to choose an item from a collection of options.
|
|
|
1028
1107
|
|
|
1029
1108
|
| Name | Type | Default | Description |
|
|
1030
1109
|
|------|------|---------|-------------|
|
|
1031
|
-
| dt |
|
|
1032
|
-
| unstyled |
|
|
1033
|
-
| pt |
|
|
1034
|
-
| ptOptions |
|
|
1035
|
-
| required |
|
|
1036
|
-
| invalid |
|
|
1037
|
-
| disabled |
|
|
1038
|
-
| name |
|
|
1039
|
-
| fluid |
|
|
1040
|
-
| variant |
|
|
1041
|
-
| size |
|
|
1042
|
-
| inputSize |
|
|
1043
|
-
| pattern |
|
|
1044
|
-
| min |
|
|
1045
|
-
| max |
|
|
1046
|
-
| step |
|
|
1047
|
-
| minlength |
|
|
1048
|
-
| maxlength |
|
|
1049
|
-
| id |
|
|
1050
|
-
| scrollHeight |
|
|
1051
|
-
| filter |
|
|
1052
|
-
| panelStyle |
|
|
1053
|
-
| panelStyleClass |
|
|
1054
|
-
| readonly |
|
|
1055
|
-
| editable |
|
|
1056
|
-
| tabindex |
|
|
1057
|
-
| placeholder |
|
|
1058
|
-
| loadingIcon |
|
|
1059
|
-
| filterPlaceholder |
|
|
1060
|
-
| filterLocale |
|
|
1061
|
-
| inputId |
|
|
1062
|
-
| dataKey |
|
|
1063
|
-
| filterBy |
|
|
1064
|
-
| filterFields |
|
|
1065
|
-
| autofocus |
|
|
1066
|
-
| resetFilterOnHide |
|
|
1067
|
-
| checkmark |
|
|
1068
|
-
| dropdownIcon |
|
|
1069
|
-
| loading |
|
|
1070
|
-
| optionLabel |
|
|
1071
|
-
| optionValue |
|
|
1072
|
-
| optionDisabled |
|
|
1073
|
-
| optionGroupLabel |
|
|
1074
|
-
| optionGroupChildren |
|
|
1075
|
-
| group |
|
|
1076
|
-
| showClear |
|
|
1077
|
-
| emptyFilterMessage |
|
|
1078
|
-
| emptyMessage |
|
|
1079
|
-
| lazy |
|
|
1080
|
-
| virtualScroll |
|
|
1081
|
-
| virtualScrollItemSize |
|
|
1082
|
-
| virtualScrollOptions |
|
|
1083
|
-
| overlayOptions |
|
|
1084
|
-
| ariaFilterLabel |
|
|
1085
|
-
| ariaLabel |
|
|
1086
|
-
| ariaLabelledBy |
|
|
1087
|
-
| filterMatchMode |
|
|
1088
|
-
| tooltip |
|
|
1089
|
-
| tooltipPosition |
|
|
1090
|
-
| tooltipPositionStyle |
|
|
1091
|
-
| tooltipStyleClass |
|
|
1092
|
-
| focusOnHover |
|
|
1093
|
-
| selectOnFocus |
|
|
1094
|
-
| autoOptionFocus |
|
|
1095
|
-
| autofocusFilter |
|
|
1096
|
-
| filterValue |
|
|
1097
|
-
| options |
|
|
1098
|
-
| appendTo |
|
|
1099
|
-
| motionOptions |
|
|
1110
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
1111
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
1112
|
+
| pt | SelectPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
1113
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
1114
|
+
| required | boolean | false | There must be a value (if set). |
|
|
1115
|
+
| invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
|
|
1116
|
+
| disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
|
|
1117
|
+
| name | string | undefined | When present, it specifies that the name of the input. |
|
|
1118
|
+
| fluid | boolean | false | Spans 100% width of the container when enabled. |
|
|
1119
|
+
| variant | "outlined" \| "filled" | 'outlined' | Specifies the input variant of the component. |
|
|
1120
|
+
| size | "small" \| "large" | undefined | Specifies the size of the component. |
|
|
1121
|
+
| inputSize | number | undefined | Specifies the visible width of the input element in characters. |
|
|
1122
|
+
| pattern | string | undefined | Specifies the value must match the pattern. |
|
|
1123
|
+
| min | number | undefined | The value must be greater than or equal to the value. |
|
|
1124
|
+
| max | number | undefined | The value must be less than or equal to the value. |
|
|
1125
|
+
| step | number | undefined | Unless the step is set to the any literal, the value must be min + an integral multiple of the step. |
|
|
1126
|
+
| minlength | number | undefined | The number of characters (code points) must not be less than the value of the attribute, if non-empty. |
|
|
1127
|
+
| maxlength | number | undefined | The number of characters (code points) must not exceed the value of the attribute. |
|
|
1128
|
+
| id | string | - | Unique identifier of the component |
|
|
1129
|
+
| scrollHeight | string | '200px' | Height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value. |
|
|
1130
|
+
| filter | boolean | - | When specified, displays an input field to filter the items on keyup. |
|
|
1131
|
+
| panelStyle | { [klass: string]: any } | - | Inline style of the overlay panel element. |
|
|
1132
|
+
| panelStyleClass | string | - | Style class of the overlay panel element. |
|
|
1133
|
+
| readonly | boolean | - | When present, it specifies that the component cannot be edited. |
|
|
1134
|
+
| editable | boolean | - | When present, custom value instead of predefined options can be entered using the editable input field. |
|
|
1135
|
+
| tabindex | number | 0 | Index of the element in tabbing order. |
|
|
1136
|
+
| placeholder | string | - | Default text to display when no option is selected. |
|
|
1137
|
+
| loadingIcon | string | - | Icon to display in loading state. |
|
|
1138
|
+
| filterPlaceholder | string | - | Placeholder text to show when filter input is empty. |
|
|
1139
|
+
| filterLocale | string | - | Locale to use in filtering. The default locale is the host environment's current locale. |
|
|
1140
|
+
| inputId | string | - | Identifier of the accessible input element. |
|
|
1141
|
+
| dataKey | string | - | A property to uniquely identify a value in options. |
|
|
1142
|
+
| filterBy | string | - | When filtering is enabled, filterBy decides which field or fields (comma separated) to search against. |
|
|
1143
|
+
| filterFields | any[] | - | Fields used when filtering the options, defaults to optionLabel. |
|
|
1144
|
+
| autofocus | boolean | - | When present, it specifies that the component should automatically get focus on load. |
|
|
1145
|
+
| resetFilterOnHide | boolean | false | Clears the filter value when hiding the select. |
|
|
1146
|
+
| checkmark | boolean | false | Whether the selected option will be shown with a check mark. |
|
|
1147
|
+
| dropdownIcon | string | - | Icon class of the select icon. |
|
|
1148
|
+
| loading | boolean | false | Whether the select is in loading state. |
|
|
1149
|
+
| optionLabel | string | - | Name of the label field of an option. |
|
|
1150
|
+
| optionValue | string | - | Name of the value field of an option. |
|
|
1151
|
+
| optionDisabled | string | - | Name of the disabled field of an option. |
|
|
1152
|
+
| optionGroupLabel | string | 'label' | Name of the label field of an option group. |
|
|
1153
|
+
| optionGroupChildren | string | 'items' | Name of the options field of an option group. |
|
|
1154
|
+
| group | boolean | - | Whether to display options as grouped when nested options are provided. |
|
|
1155
|
+
| showClear | boolean | - | When enabled, a clear icon is displayed to clear the value. |
|
|
1156
|
+
| emptyFilterMessage | string | '' | Text to display when filtering does not return any results. Defaults to global value in i18n translation configuration. |
|
|
1157
|
+
| emptyMessage | string | '' | Text to display when there is no data. Defaults to global value in i18n translation configuration. |
|
|
1158
|
+
| lazy | boolean | false | Defines if data is loaded and interacted with in lazy manner. |
|
|
1159
|
+
| virtualScroll | boolean | - | Whether the data should be loaded on demand during scroll. |
|
|
1160
|
+
| virtualScrollItemSize | number | - | Height of an item in the list for VirtualScrolling. |
|
|
1161
|
+
| virtualScrollOptions | ScrollerOptions | - | Whether to use the scroller feature. The properties of scroller component can be used like an object in it. |
|
|
1162
|
+
| overlayOptions | OverlayOptions | - | Whether to use overlay API feature. The properties of overlay API can be used like an object in it. |
|
|
1163
|
+
| ariaFilterLabel | string | - | Defines a string that labels the filter input. |
|
|
1164
|
+
| ariaLabel | string | - | Used to define a aria label attribute the current element. |
|
|
1165
|
+
| ariaLabelledBy | string | - | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
|
|
1166
|
+
| filterMatchMode | "gt" \| "lt" \| "in" \| "startsWith" \| "contains" \| "endsWith" \| "equals" \| "notEquals" \| "lte" \| "gte" | 'contains' | Defines how the items are filtered. |
|
|
1167
|
+
| tooltip | string | '' | Advisory information to display in a tooltip on hover. |
|
|
1168
|
+
| tooltipPosition | "top" \| "bottom" \| "left" \| "right" | 'right' | Position of the tooltip. |
|
|
1169
|
+
| tooltipPositionStyle | string | 'absolute' | Type of CSS position. |
|
|
1170
|
+
| tooltipStyleClass | string | - | Style class of the tooltip. |
|
|
1171
|
+
| focusOnHover | boolean | true | Fields used when filtering the options, defaults to optionLabel. |
|
|
1172
|
+
| selectOnFocus | boolean | false | Determines if the option will be selected on focus. |
|
|
1173
|
+
| autoOptionFocus | boolean | false | Whether to focus on the first visible or selected element when the overlay panel is shown. |
|
|
1174
|
+
| autofocusFilter | boolean | true | Applies focus to the filter element when the overlay is shown. |
|
|
1175
|
+
| filterValue | string | - | When specified, filter displays with this value. |
|
|
1176
|
+
| options | any[] | - | An array of objects to display as the available options. |
|
|
1177
|
+
| 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). |
|
|
1178
|
+
| motionOptions | MotionOptions | - | The motion options. |
|
|
1100
1179
|
|
|
1101
1180
|
### Emits
|
|
1102
1181
|
|