CuppaLabs / angular2-multiselect-dropdown

Angular 2 Dropdown Multiselect
https://cuppalabs.github.io/angular2-multiselect-dropdown
MIT License
297 stars 256 forks source link

Remove clear all - cross icon from single selection dropdown #464

Open nikhilghodke17 opened 4 years ago

nikhilghodke17 commented 4 years ago

I need to remove the cross icon from single selection dropdown.

Version angular2-multiselect-dropdown: ^4.6.3

Expected Behaviour A clear all - cross icon can be removed from the dropdown.

Screenshot

Screenshot 2020-02-13 at 11 17 53 AM
nagulapallinaveen commented 4 years ago

CSS for removing Cross Icon: / CSS For GroupBy Checkbox Removal and Making the GroupBy Header Font Bold / `.pure-checkbox input[type=checkbox]+label:before{ display: none !important; pointer-events: none !important; } .pure-checkbox.grp-item input[type=checkbox]+label:before { display: block !important; pointer-events: visible !important; } .pure-checkbox input[type=checkbox]+label { pointer-events: none !important; font-weight: 600 !important; padding-left: 0 !important; } .pure-checkbox.grp-item input[type=checkbox]+label { font-weight: 300 !important; padding-left: 2em !important; }

.lazyContainer li.grp-title{ pointer-events: none !important; } .pure-checkbox input[type=checkbox]+label:after{ visibility: hidden; } .pure-checkbox.grp-item input[type=checkbox]+label:after{ visibility: visible; } `

psenechal commented 3 years ago

I have use cases where I have clearable and non-clearable Dropdowns on the same page, so a global CSS option wouldn't work in this case. I haven't looked into how ng-select implements their [clearable] input, but something like that would be preferable IMO.