USGS-WiM / SiGL

angular 4 cli mapping application
Other
0 stars 1 forks source link

All FilterComponent selects should use angular-2-multiselect #133

Closed esmyers closed 6 years ago

esmyers commented 6 years ago

There is an option to modify the the settings of the multiple selects to make them single selects.

in the FilterComponent.html add [settings]="mySettings" to the directive that will be a single select

in the FilterComponent.ts add public mySettings: IMultiSelectSettings = { selectionLimit: 1, autoUnselect: true}

Doing so will require modifying the typescript to be an array of MultiSelectOptions much like the other dropdowns: //project public projectList: Array; public projectSelected: Array; //organization public organizationList: Array; public orgSelected: Number;

Any references to these in the FilterComponent will also need to be updated.

esmyers commented 6 years ago

When the Filtercomponent uses the same select directive throughout it will be much easier to style properly.