- Timestamp:
- 06/29/12 19:56:22 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/ui/LineWithActionsWidgetThijs.js
r342 r349 1 define(['dojo/_base/declare','dojo/_base/lang','dojo/on','dojo/dom', 'dojo/dom-class', 'dijit/form/Button', 2 'dijit/_WidgetBase','dijit/_TemplatedMixin','dijit/_WidgetsInTemplateMixin', 1 define([ 2 'dojo/_base/declare', 3 'dojo/_base/lang', 4 'dojo/on', 5 'dojo/dom', 6 'dojo/dom-class', 7 'dijit/form/Button', 8 'dijit/_WidgetBase', 9 'dijit/_TemplatedMixin', 10 'dijit/_WidgetsInTemplateMixin', 3 11 'dojo/text!./templates/LineWithActionsWidget.html' 4 12 ], 5 function(declare,lang,on,dom,domClass,Button,_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin,templateString){ 13 function( 14 declare, 15 lang, 16 on, 17 dom, 18 domClass, 19 Button, 20 _WidgetBase, 21 _TemplatedMixin, 22 _WidgetsInTemplateMixin, 23 templateString) { 6 24 return declare('rft.ui.LineWithActionsWidgetThijs',[_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin],{ 25 7 26 templateString: templateString, 8 27 baseClass: 'rftLineWithButtons', 9 28 title: '', 10 modifiers: " blue",29 modifiers: "", 11 30 userObject: null, 12 31 actions: {}, 32 13 33 postCreate: function() { 14 34 dom.setSelectable(this.domNode, false); … … 23 43 _setupActions: function() { 24 44 for (var action in this.actions) { 25 45 26 46 if (this.actions[action].properties.blockButton == true) { // BlockButton 27 47 var properties = lang.mixin({ … … 51 71 }, 52 72 refresh: function() { 73 53 74 this.titleNode.innerHTML = this.title; 54 75 }, … … 66 87 } 67 88 }); 68 89 });
Note: See TracChangeset
for help on using the changeset viewer.