Changeset 349 for Dev/branches/rest-dojo-ui/client/rft/ui
- Timestamp:
- 06/29/12 19:56:22 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui/client/rft/ui
- Files:
-
- 3 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 }); -
Dev/branches/rest-dojo-ui/client/rft/ui/ObjectBox.js
r346 r349 60 60 label: "Edit/View", 61 61 modifiers: "trans", 62 icon: " Settings"62 icon: "Edit" 63 63 } 64 64 }; … … 93 93 _setObjectReference: function(identifier) { 94 94 // TODO: Set this ObjectBox to refer to a certain database object 95 96 95 }, 96 _getObjectInfo: function() { 97 97 // TODO: Query the database and retrieve a JSON array of object properties 98 99 98 }, 99 _inspectObject: function() { 100 100 // TODO: Get object information (or retrieve from cache), then display in popup 101 102 101 }, 102 _editObject: function(customFunction) { 103 103 // TODO: Pass an edit call to the page script, along with reference to the object contained in this ObjectBox 104 104 alert("Default edit code"); … … 138 138 * TODO: Check with Hendrik if I should do this or not! 139 139 * */ 140 CreateNew: function(arguments, reference, location) {140 CreateNew: function(arguments, reference, location) { 141 141 var newBox = new rft.ui.ObjectBox(arguments); 142 142 newBox.startup(); … … 144 144 } 145 145 }); 146 146 }); -
Dev/branches/rest-dojo-ui/client/rft/ui/templates/MainMenu.html
r344 r349 5 5 <span>Content</span> 6 6 <div data-dojo-type="dijit.DropDownMenu"> 7 <div data-dojo-type="rft.ui.MenuLink" data-dojo-props="pageId:'surveys'">Surveys</div>8 <div data-dojo-type="rft.ui.MenuLink" data-dojo-props="pageId:'questions'">Questions</div>9 <div data-dojo-type="rft.ui.MenuLink" data-dojo-props="pageId:'applications'">Applications</div>10 <div data-dojo-type="rft.ui.MenuLink" data-dojo-props="pageId:'dashboards'">Dashboards</div>7 <div data-dojo-type="rft.ui.MenuLink" class="blue" data-dojo-props="pageId:'surveys', iconClass:'rftIcon rftIconSurvey'">Surveys</div> 8 <div data-dojo-type="rft.ui.MenuLink" class="orange" data-dojo-props="pageId:'questions', iconClass:'rftIcon rftIconQuestion'">Questions</div> 9 <div data-dojo-type="rft.ui.MenuLink" class="purple" data-dojo-props="pageId:'applications', iconClass: 'rftIcon rftIconApplication'">Applications</div> 10 <div data-dojo-type="rft.ui.MenuLink" class="red" data-dojo-props="pageId:'dashboards', iconClass: 'rftIcon rftIconDashboard'">Dashboards</div> 11 11 </div> 12 12 </div>
Note: See TracChangeset
for help on using the changeset viewer.