The MultiSelect dropdown

The MultiSelect component is used to select multiple items from a collection, unlike the Dropdown component, which provides single item selection. A basic example of a MultiSelect component with the list of countries would be as follows:

<p-multiSelect [options]="countries" [(ngModel)]="selectedCountries">
</
p-multiSelect>

The list of options is available through collection of the SelectItem interface, which takes a label-value pair. The list of options is bound through the options attribute of the MultiSelect component. The MultiSelect will be displayed with the countries list, as shown in the following screenshot:

In this case, the user can select multiple countries using the checkbox option, which is available for each item, and filter input to select specific options.

The complete demo application with instructions is available on GitHub at
https://github.com/ova2/angular-development-with-primeng/tree/master/chapter3/select.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.111.197