I want to change the grid initialization from javascript to use mostly data attributes
In my js I have the following:
},
How do I move it to a data attribute?
I have the following now but how do I fill in the messages part?
Thanks!
In my js I have the following:
filterable: {
name:
"FilterMenu"
,
extra:
true,
messages: { isTrue:
"On",
isFalse:
"Off"
}},
I have the following now but how do I fill in the messages part?
data-filterable='{
"name" : "FilterMenu",
"extra" : "true",
"messages" : "{
}"
}'
Thanks!