lordfriend / nya-bootstrap-select

An AngularJS select replacement which build select like dropdown component with collection and ng-model support
http://nya.io/nya-bootstrap-select/
MIT License
179 stars 81 forks source link

Is there a label support #106

Open UltimateFighter opened 8 years ago

UltimateFighter commented 8 years ago

Can i use <label for"... ?

UltimateFighter commented 8 years ago

my workaround is:

.directive('forSelectbox', function () {
        return function (scope, element, attrs) {
            element.bind('click', function () {
                $('#' + attrs.forSelectbox + ' button').focus();
            });
        };
    });
Seiifer commented 8 years ago

This is working fine for me :

<label>Project</label>
    <ol class="nya-bs-select" ng-model="t.add.project" data-live-search="true" style="width: 100%;" ng-required="true"
        title="Choose one of the following project...">
      <li nya-bs-option="project in t.projectsList">
        <a>
          {{project.title}}
        </a>
      </li>
    </ol>