Skip to content

Commit

Permalink
add all context example
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Feb 18, 2019
1 parent 6694f45 commit 50c1b7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demo/scripted.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
ranking.scripted('cat==c1 ? A : B', `values[0] === 'c1' ? values[1] : values[2]`, 'cat', 'a', 'b');
// complex if clause row version
ranking.scripted('cat==c1 ? A : B', `row.cat === 'c1' ? normalize(row.a, 5, 10) : normalize(row.b, 0, 10)`);
// complex if clause all column version
ranking.scripted('cat==c1 ? A : B', `col.all.byName('cat').v === 'c1' ? col.all.byName('a').v : col.all.byName('b').v`);

// fancy complex code
const code = `
Expand Down

0 comments on commit 50c1b7a

Please sign in to comment.