mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
Add list toolbar component.
This commit is contained in:
parent
1becd4c39d
commit
05c24df9e3
18
awx/ui/client/lib/components/list/list-toolbar.directive.js
Normal file
18
awx/ui/client/lib/components/list/list-toolbar.directive.js
Normal file
@ -0,0 +1,18 @@
|
||||
const templateUrl = require('~components/list/list-toolbar.partial.html');
|
||||
|
||||
function atListToolbar () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
transclude: true,
|
||||
templateUrl,
|
||||
scope: {
|
||||
onExpand: '=',
|
||||
onCollapse: '=',
|
||||
sortOnly: '=',
|
||||
isCollapsed: '=',
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default atListToolbar;
|
@ -0,0 +1,5 @@
|
||||
<div class="at-List-toolbar--attached">
|
||||
<div ng-class="isCollapsed ? 'active' : ''" ng-if="!sortOnly" class="at-List-toolbar-item" ng-click="onCollapse()">Compact</div>
|
||||
<div ng-class="!isCollapsed ? 'active' : ''" ng-if="!sortOnly" class="at-List-toolbar-item" ng-click="onExpand()">Expanded</div>
|
||||
<div class="at-List-toolbar-item">Sort</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user