Files
awx/awx/ui/client/src/shared/smart-search/smart-search.directive.js
2017-07-21 11:10:08 -04:00

28 lines
841 B
JavaScript

export default ['templateUrl',
function(templateUrl) {
return {
restrict: 'E',
replace: false,
transclude: {
actions: '?div' // preferably would transclude an actions directive here
},
scope: {
djangoModel: '@',
basePath: '@',
iterator: '@',
list: '=',
dataset: '=',
collection: '=',
searchTags: '=',
disableSearch: '=',
defaultParams: '=',
querySet: '=',
singleSearchParam: '@',
searchBarFullWidth: '='
},
controller: 'SmartSearchController',
templateUrl: templateUrl('shared/smart-search/smart-search')
};
}
];