columnHeader change icon, style

This commit is contained in:
Dani Herrero 2017-07-11 08:59:12 +02:00
parent bbd09b3d36
commit 81726e0a09
5 changed files with 22 additions and 22 deletions

View File

@ -4,8 +4,8 @@
{{::$ctrl.text}}
</vn-none>
<vn-none>
<vn-icon icon="keyboard_arrow_down" ng-if="$ctrl.showArrow('DESC')"></vn-icon>
<vn-icon icon="keyboard_arrow_up" ng-if="$ctrl.showArrow('ASC')"></vn-icon>
<vn-icon icon="arrow_drop_down" ng-if="$ctrl.showArrow('DESC')"></vn-icon>
<vn-icon icon="arrow_drop_up" ng-if="$ctrl.showArrow('ASC')"></vn-icon>
</vn-none>
</vn-horizontal>
<ng-transclude ng-if="!$ctrl.text"></ng-transclude>

View File

@ -1,6 +1,6 @@
import {module} from '../module';
export default class ColumHeader {
export default class ColumnHeader {
constructor() {
this.order = undefined;
this.mouseIsOver = false;
@ -22,10 +22,10 @@ export default class ColumHeader {
return showArrow;
}
}
ColumHeader.$inject = [];
ColumnHeader.$inject = [];
module.component('vnColumHeader', {
template: require('./colum-header.html'),
module.component('vnColumnHeader', {
template: require('./column-header.html'),
bindings: {
field: '@?',
text: '@?',
@ -34,6 +34,6 @@ module.component('vnColumHeader', {
require: {
gridHeader: '^^vnGridHeader'
},
controller: ColumHeader,
controller: ColumnHeader,
transclude: true
});

View File

@ -17,7 +17,7 @@ import './snackbar/snackbar';
import './tooltip/tooltip';
import './icon-menu/icon-menu';
import './drop-down/drop-down';
import './colum-header/colum-header';
import './column-header/column-header';
import './grid-header/grid-header';
import './multi-check/multi-check';

View File

@ -7,12 +7,12 @@ vn-grid-header {
white-space: nowrap;
justify-content: center;
vn-none{
min-width: 16px;
min-width: 17px;
}
}
vn-icon{
line-height: 16px;
font-size: 16px;
line-height: 17px;
font-size: 17px;
margin: 0;
padding: 0;
display: inline;

View File

@ -1,18 +1,18 @@
<vn-vertical>
<vn-grid-header on-order="$ctrl.onOrder(field, order)">
<vn-none min-none></vn-none>
<vn-colum-header vn-none min-none>
<vn-column-header vn-none min-none>
<vn-multi-check check-all="$ctrl.checkAll" models="$ctrl.tickets" options="[{id:'all',name:'Todos'},{id:'any',name:'Ninguno'},{id:'problem',name:'Con incidencia'},{id:'no-problem',name:'Sin incidencia'}]"></vn-multi-check>
</vn-colum-header>
<vn-colum-header vn-one pad-medium-h field="ticketFk" text="Ticket ID"></vn-colum-header>
<vn-colum-header vn-two pad-medium-h field="agency" text="Agency"></vn-colum-header>
<vn-colum-header vn-one pad-medium-h field="routeFk" text="Route ID"></vn-colum-header>
<vn-colum-header vn-two pad-medium-h field="salesPerson" text="Commercial"></vn-colum-header>
<vn-colum-header vn-one pad-medium-h field="hour" text="Hour"></vn-colum-header>
<vn-colum-header vn-one pad-medium-h field="state" text="State"></vn-colum-header>
<vn-colum-header vn-one pad-medium-h field="lines" text="Lines"></vn-colum-header>
<vn-colum-header vn-one pad-medium-h field="m3" text="m3"></vn-colum-header>
<vn-colum-header vn-one pad-medium-h field="boxes" text="Boxes"></vn-colum-header>
</vn-column-header>
<vn-column-header vn-one pad-medium-h field="ticketFk" text="Ticket ID"></vn-column-header>
<vn-column-header vn-two pad-medium-h field="agency" text="Agency"></vn-column-header>
<vn-column-header vn-one pad-medium-h field="routeFk" text="Route ID"></vn-column-header>
<vn-column-header vn-two pad-medium-h field="salesPerson" text="Commercial"></vn-column-header>
<vn-column-header vn-one pad-medium-h field="hour" text="Hour"></vn-column-header>
<vn-column-header vn-one pad-medium-h field="state" text="State"></vn-column-header>
<vn-column-header vn-one pad-medium-h field="lines" text="Lines"></vn-column-header>
<vn-column-header vn-one pad-medium-h field="m3" text="m3"></vn-column-header>
<vn-column-header vn-one pad-medium-h field="boxes" text="Boxes"></vn-column-header>
<vn-none min-none></vn-none>
</vn-grid-header>
<vn-one class="list list-content">