UNPKG

ui-select

Version:
18 lines (16 loc) 647 B
uis.directive('uiSelectNoChoice', ['uiSelectConfig', function (uiSelectConfig) { return { restrict: 'EA', require: '^uiSelect', replace: true, transclude: true, templateUrl: function (tElement) { // Needed so the uiSelect can detect the transcluded content tElement.addClass('ui-select-no-choice'); // Gets theme attribute from parent (ui-select) var theme = tElement.parent().attr('theme') || uiSelectConfig.theme; return theme + '/no-choice.tpl.html'; } }; }]);