angular-ui / ui-select

AngularJS-native version of Select2 and Selectize
MIT License
3.26k stars 1.81k forks source link

Allow option to provide classes for select input #169

Open mfunkie opened 10 years ago

mfunkie commented 10 years ago

Currently, we are able to pass a class attribute to the ui-select-match element directive and it will get included on the button. There is not, however, functionality to allow for the same on an input.

The use case for this is using input-sm and btn-sm on the bootstrap ui-select.

seanboom commented 10 years ago

+1

igreulich commented 10 years ago

+1

jgoux commented 9 years ago

+1

gerardp commented 9 years ago

+1

germanger commented 9 years ago

+1

germanger commented 9 years ago

If I wanted all of my ui-selects to use input-sm, is that possible through a css overriding?

osales commented 9 years ago

+1

surabhi-batra commented 9 years ago

+1

gerardp commented 9 years ago

Any news on this enhancement?

dimirc commented 9 years ago

This won't be an easy fix since and maybe we should resolve https://github.com/angular-ui/ui-select/issues/186 first

yannbertrand commented 8 years ago

Any news on this one?

gaeloberson commented 8 years ago

+1

wwasik commented 8 years ago

+1

artparks commented 8 years ago

if you're using a pre-processor you can use the mixin:

@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $line-height-sm, $btn-border-radius-sm);

on .ui-select-toggle etc

(this may be specific to BS4, there's probably a BS3 version)

danielxbauer commented 8 years ago

+1

germanger commented 8 years ago

any news on this? I want to use btn-sm ! :(

Snowpine commented 8 years ago

+1

Lekmaby commented 8 years ago

+1

vamshi4001 commented 8 years ago

+1

boltex commented 8 years ago

+1

ancabi commented 8 years ago

+1

LrsNate commented 8 years ago

+1

jeremypeters commented 7 years ago

A bit late to the party, but it seems that wrapping the <ui-select ... /> with an element which has a form-group-sm class seems to do the job.

emmanueldaher commented 7 years ago

+1

evgeniy2194 commented 7 years ago

+1

jcristini commented 6 years ago

+1