Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit 24b41f1

Browse files
adlairdjonshaffer
authored andcommitted
Sort priority digit is now added to headers (#59)
* Add and style sort priority to sorted column headers * Fixed code climate linting errors
1 parent 82aba07 commit 24b41f1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/components/header/HeaderCellDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function HeaderCellDirective($compile) {
3434
<span class="dt-header-cell-label"
3535
ng-click="hcell.onSorted()">
3636
</span>
37-
<span ng-class="hcell.sortClass()"></span>
37+
<span ng-class="hcell.sortClass()">{{hcell.column.sortPriority}}</span>
3838
</div>
3939
</div>`,
4040
compile() {

src/dataTable.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,18 @@
9595
.sort-btn {
9696
visibility: hidden;
9797
display: inline-block;
98+
font-size: 0.7rem;
99+
vertical-align: super;
98100

99101
&.sort-desc,
100102
&.sort-asc {
101103
visibility: visible;
102104
}
105+
106+
&::before {
107+
font-size: 1.2rem;
108+
vertical-align: bottom;
109+
}
103110
}
104111

105112
.dt-resize-handle {

0 commit comments

Comments
 (0)