-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
right now im solving it like this, but it would be nice if the transparency would not treat directives as strings-only.
items: {
item: {
+ onclick: function(params){
+ return '('+function(){
+ alert('hello')
+ alert("world") // using doublequotes will break
+ }+')()'
+ }
}
}
I've also tried this:
items: {
item: {
+ onclick: function(params){
+ $(params.element).click( function(){
+ alert('hello')
+ alert("world")
+ })
+ }
}
}
How do you people handle click-events?
Should we be able to do this in the future? :
items: {
item: {
+ onclick: function(params){
+ return function(){
+ alert('hello')
+ alert("world")
+ } // currently this will be converted to a string unfortunately (so it doesn't work)
+ }
}
}
Metadata
Metadata
Assignees
Labels
No labels