Created
May 12, 2011 20:25
-
-
Save davidillsley/969366 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const widgets = require("widget"); | |
var widget = widgets.Widget({ | |
id: "button test", | |
label: "Button Test", | |
content: "<html><body><form><input value='Press Me!' type='button' id='button'></form></body></html>", | |
contentScript: "document.getElementById(\"button\").addEventListener(\"click\",function(){window.alert(\"Clicked\");},false);", | |
width: 100 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment