- Timestamp:
- 06/14/12 18:34:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/ui/LineWithActionsWidgetThijs.js
r339 r342 28 28 baseClass: 'rftBlockButton', 29 29 modifiers: this.modifiers, 30 label: action,31 iconClass: 'rftIcon rftIcon'+ action,30 label: "Default", 31 iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon, 32 32 title: action, 33 onClick: lang.hitch(this, function(){ 34 this.actions[action].callback(this.userObject); 35 }) 36 }, 37 this.actions[action].properties); 33 onClick: lang.hitch(this, this.actions[action].callback) 34 }, this.actions[action].properties); 38 35 properties["class"] = properties.modifiers; 39 36 new Button(properties).placeAt(this.buttonsNode); … … 42 39 baseClass: 'rftInlineButton', 43 40 modifiers: 'black', 41 label: "Default", 44 42 showLabel: false, 45 iconClass: 'rftIcon rftIcon'+ action,43 iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon, 46 44 title: action, 47 onClick: lang.hitch(this, function(){ 48 this.actions[action].callback(this.userObject); 49 }) 50 }, 51 this.actions[action].properties); 45 onClick: lang.hitch(this, this.actions[action].callback) 46 }, this.actions[action].properties); 52 47 properties["class"] = properties.modifiers; 53 48 new Button(properties).placeAt(this.buttonsNode); … … 65 60 return !preventDefault; 66 61 }, 67 onClick: function(e) {} 62 onClick: function(e) {}, 63 _setTitleAttr: function(value){ 64 this.title = value; 65 this.refresh(); 66 } 68 67 }); 69 68 });
Note: See TracChangeset
for help on using the changeset viewer.