Skip to content

Commit

Permalink
multicolumn sort example
Browse files Browse the repository at this point in the history
  • Loading branch information
stevewirts committed Aug 18, 2015
1 parent 3f2787e commit b81646b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/bclys/fin-hypergrid.min.html

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions examples/bclys/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,18 @@
var y = config.y;
var image = offFilterImage;
if (y < 3 || x === -1) {
if (y === 1) {
if (y === 0) {
image = jsonModel.getBaseModel().getSortImageForColumn(x);
config.value[2] = image;
}
else if (y === 1) {
if (x === -1) {
return renderer;
}
if (config.value !== '') {
image = onFilterImage;
}
config.value = [null, config.value, image]
config.value = [null, config.value, image];// filter icons
}
return renderer;
}
Expand Down

0 comments on commit b81646b

Please sign in to comment.