Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <textarea>
  2. thisbox.contextmenu.contextActions = function() {
  3. return [{
  4. text: "Foo",
  5. action: function(v) { cascade = v; vexi.log.info("foo"); },
  6. enabled: enabled
  7. }]);
  8. }
  9. </textarea>
  10.  
  11. <vexi xmlns="vexi.widget">
  12. <textarea>
  13. // overlays the trap specified in the inherited
  14. // org.vexi.lib.text.contextmenu by textarea
  15. thisbox.contextActions ++= function() {
  16. var actions = cascade;
  17. actions.push(
  18. new .menuitem({
  19. text: "Foo",
  20. action: function(v) { cascade = v; vexi.log.info("foo"); },
  21. enabled: enabled
  22. }));
  23. return actions;
  24. }
  25. </textarea>
  26. </vexi>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement