ui-select
Version:
16 lines (14 loc) • 467 B
JavaScript
uis.directive('uiSelectFooter', function(uiSelectConfig){
return {
templateUrl: function (tElement) {
// Needed so the uiSelect can detect the transcluded content
tElement.addClass('ui-select-footer');
// Gets theme attribute from parent (ui-select)
var theme = tElement.parent().attr('theme') || uiSelectConfig.theme;
return theme + '/footer.tpl.html';
},
restrict: 'EA',
transclude: true,
replace: true
};
});