ng2-select icon indicating copy to clipboard operation
ng2-select copied to clipboard

Add option to disable manual input

Open mpetkov opened this issue 8 years ago • 11 comments

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.

mpetkov avatar Mar 10 '16 14:03 mpetkov

👍 Any update on the anticipated availability of this feature?

lmarkes avatar May 31 '16 17:05 lmarkes

dis you achieve this ?

uzumakinaruto123 avatar Oct 14 '16 12:10 uzumakinaruto123

Bump

fletchertyler914 avatar Dec 28 '16 18:12 fletchertyler914

you could just override the css and hide it

.ui-select-search { display: none; }

dafreaki avatar Jan 10 '17 03:01 dafreaki

@dafreaki this does not appear to work either.

fletchertyler914 avatar Jan 11 '17 15:01 fletchertyler914

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" .......

dafreaki avatar Jan 11 '17 21:01 dafreaki

search box is hidding ok, but value cant able select?

raghulrajnkl avatar Dec 17 '17 06:12 raghulrajnkl

[noAutoComplete]="true"

amiram avatar May 01 '18 06:05 amiram

[searchable]="false" [clearable]="false"

jeffhughescitadel avatar Jun 15 '18 15:06 jeffhughescitadel

@jeffhughescitadel Thanks a lot!

dmytro-shapovalov avatar Jul 31 '19 15:07 dmytro-shapovalov

Nothing here works

duzenko avatar Jan 27 '21 15:01 duzenko