Default Event for Custom Widget.
Posted: Thu May 10, 2012 4:06 pm
Hello,
can anyone tell me ( or point to the documentation if i'm missing it) how to create a custom widget with a default click event?
I've tried.
defaults: {
"onclick": "alert('HI!');"
}
in both pui.widgets.add() and pui.toolbox.add() with no luck.
I'm looking to create a quick widget to include on pages. This widget will just be an element (say a div) with an background image that will alert some values when clicked.
Thanks
-Nathan
can anyone tell me ( or point to the documentation if i'm missing it) how to create a custom widget with a default click event?
I've tried.
defaults: {
"onclick": "alert('HI!');"
}
in both pui.widgets.add() and pui.toolbox.add() with no luck.
I'm looking to create a quick widget to include on pages. This widget will just be an element (say a div) with an background image that will alert some values when clicked.
Thanks
-Nathan