angular2-multiselect-dropdown icon indicating copy to clipboard operation
angular2-multiselect-dropdown copied to clipboard

Remove clear all - cross icon from single selection dropdown

Open nikhilghodke17 opened this issue 5 years ago • 2 comments

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

nikhilghodke17 avatar Feb 18 '20 07:02 nikhilghodke17

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; } `

nagulapallinaveen avatar Mar 04 '20 09:03 nagulapallinaveen

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.

psenechal avatar Mar 20 '21 07:03 psenechal