1

I'm trying to set the options width from a group where the ng-select belongs.

Currently it looks like this:

Current ui

I want to show the options like this:

enter image description here

My current code is like this:

enter image description here

I am hoping that I can add something in ng-select to set option width same with form-search. I can't find resources to do this. Any other way would also be helpful. Thanks

georgeawg
  • 48,608
  • 13
  • 72
  • 95
  • i hope this link help you: https://stackoverflow.com/questions/18615624/angularjs-ng-options-with-group?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa – Vahid Rahmani May 05 '18 at 05:39
  • use ng-option for this use. https://stackoverflow.com/questions/18615624/angularjs-ng-options-with-group?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa – Vahid Rahmani May 05 '18 at 05:41
  • i don't think the link is helpful. I want the width of the option in a certain group not in the select itself – Wilnar Vincent May 05 '18 at 07:40
  • can you add some like [style]="{width:100%;padding:0}" in your tag? – Eliseo May 05 '18 at 12:38

0 Answers0