Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <textarea>
- thisbox.contextmenu.contextActions = function() {
- return [{
- text: "Foo",
- action: function(v) { cascade = v; vexi.log.info("foo"); },
- enabled: enabled
- }]);
- }
- </textarea>
- <vexi xmlns="vexi.widget">
- <textarea>
- // overlays the trap specified in the inherited
- // org.vexi.lib.text.contextmenu by textarea
- thisbox.contextActions ++= function() {
- var actions = cascade;
- actions.push(
- new .menuitem({
- text: "Foo",
- action: function(v) { cascade = v; vexi.log.info("foo"); },
- enabled: enabled
- }));
- return actions;
- }
- </textarea>
- </vexi>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement