ng2-select
ng2-select copied to clipboard
Add option to disable manual input
Original select2 had an option called Hiding the search box which would disable manual user input for a dropdown. This is very useful when you have a small list of options in a dropdown and don't want the user to be able to type.
👍 Any update on the anticipated availability of this feature?
dis you achieve this ?
Bump
you could just override the css and hide it
.ui-select-search { display: none; }
@dafreaki this does not appear to work either.
here what i did
in the style.css
/* hiding the search */ .no-search-select .ui-select-container{ min-height: 34px; } .no-search-select .ui-select-search { display: none; } .no-search-select .ui-select-choices{ margin-top: -34px !important; }
in the html <ng-select class="no-search-select" .......
search box is hidding ok, but value cant able select?
[noAutoComplete]="true"
[searchable]="false" [clearable]="false"
@jeffhughescitadel Thanks a lot!
Nothing here works