nya-bootstrap-select
nya-bootstrap-select copied to clipboard
Is there a label support
Can i use <label for"... ?
my workaround is:
.directive('forSelectbox', function () {
return function (scope, element, attrs) {
element.bind('click', function () {
$('#' + attrs.forSelectbox + ' button').focus();
});
};
});
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>