MenuItemRedo.js 570 B

123456789101112131415161718192021222324252627282930313233
  1. SC.loadPackage({ 'MenuItemRedo': {
  2. comment: 'I am the MenuItem for redo.',
  3. traits: ['MenuItem'],
  4. sharedProperties: {
  5. menuContainer: { initValue: '<div class="sg-editing-menu-container"><button id="sg-editing-menu-redo" class="sg-editing-menu-button"></button></div>' }
  6. },
  7. methods: {
  8. init: {
  9. comment: 'I init the MenuItem.',
  10. code: function(theDocumentMenu){
  11. this.delegate('MenuItem', 'init', theDocumentMenu);
  12. this.set({ isActionButton: true });
  13. }
  14. }
  15. }
  16. }});