Skip to content

Commit

Permalink
#70 Started to work on an optimized dropdownFilter option
Browse files Browse the repository at this point in the history
  • Loading branch information
tom bertrand committed Mar 31, 2016
1 parent a51c2d5 commit 5dad0f6
Show file tree
Hide file tree
Showing 3 changed files with 230 additions and 115 deletions.
46 changes: 29 additions & 17 deletions example/demo-hockey_v1.html
Expand Up @@ -281,25 +281,37 @@ <h1>Hockey_v1 Demo</h1>
hint: true,
//cache: true,
searchOnFocus: true,
group: ["division", "{{group}} division"],
//group: ["division", "{{group}} division"],
group: "division",
// group: {
// key: 'division',
// template: '{{division}} division'
// },
display: ["name", "city", "division"],
correlativeTemplate: true,
dropdownFilter: [
{
key: 'conference',
value: 'Western',
display: '<strong>Western</strong> Conference'
},
{
key: 'conference',
value: 'Eastern',
display: '<strong>Eastern</strong> Conference'
},
{
value: '*',
display: 'All Teams'
}
],
// dropdownFilter: true,
// dropdownFilter: 'division',
dropdownFilter: {
key: 'division',
template: '<strong>{{division}}</strong> division',
all: 'All Teams'
},
// dropdownFilter: [
// {
// key: 'conference',
// value: 'Western',
// display: '<strong>Western</strong> Conference'
// },
// {
// key: 'conference',
// value: 'Eastern',
// display: '<strong>Eastern</strong> Conference'
// },
// {
// value: '*',
// display: 'All Teams'
// }
// ],
template: '<span>' +
'<span class="name">{{name}}</span>' +
'<span class="division">({{city}}, {{division}} division, {{conference}} conference)</span>' +
Expand Down

0 comments on commit 5dad0f6

Please sign in to comment.