- Timestamp:
- 06/04/12 16:18:24 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui/client
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/mockup.html
r337 r338 82 82 <div data-dojo-type="dijit.layout.TabContainer" data-dojo-props="tabPosition:'left-h',region:'center'"> 83 83 <div data-dojo-type="dijit.layout.ContentPane" title="Category One"> 84 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat one' , color: 'blue'"></div>85 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat two' , color: 'blue'"></div>84 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat one'"></div> 85 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat two'"></div> 86 86 </div> 87 87 <div data-dojo-type="dijit.layout.ContentPane" title="Category Two"> 88 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat one' , color: 'blue'"></div>89 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat two' , color: 'blue'"></div>88 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat one'"></div> 89 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat two'"></div> 90 90 </div> 91 91 <div data-dojo-type="dijit.layout.ContentPane" title="Category Three"> 92 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat one' , color: 'blue'"></div>92 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat one'"></div> 93 93 </div> 94 94 <div data-dojo-type="dijit.layout.ContentPane" title="Category Four"> 95 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:' Subcat one', color: 'blue'"></div>96 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat two' , color: 'blue'"></div>97 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat three' , color: 'blue'"></div>95 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Green Question Subcat one'"></div> 96 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat two'"></div> 97 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat three'"></div> 98 98 </div> 99 99 <div data-dojo-type="dijit.layout.ContentPane" title="Category Five"> 100 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat one' , color: 'purple'"></div>101 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat two' , color: 'purple'"></div>102 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat three' , color: 'purple'"></div>103 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat four' , color: 'purple'"></div>100 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat one'"></div> 101 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat two'"></div> 102 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat three'"></div> 103 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat four'"></div> 104 104 105 105 <button data-dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftLargeButton', iconClass:'rftIcon rftIconAccept'">Properties</button> -
Dev/branches/rest-dojo-ui/client/rft/css/rftSelector.css
r335 r338 1 /* IT'S LIKE THAT, AND THAT'S THE WAY IT IS! HUH! */2 1 .gamelab .rftSelector { 3 2 margin: 4px; 4 3 font-size: 13px; 5 color: #ffffff;6 4 } 7 5 .gamelab .rftLineWithButtons { … … 10 8 font-size: 13px; 11 9 margin: 0; 12 background-color: #ffffff;13 color: #000000;14 10 white-space: nowrap; 15 }16 .gamelab .rftSelector .rftSelectorCategory {17 height: 24px;18 }19 20 /* Colour scheme */21 .gamelab .blue.rftSelector .rftSelectorCategory {22 background-color: #0072bc;23 }24 .gamelab .red.rftSelector .rftSelectorCategory {25 background-color: #8c0310;26 }27 .gamelab .purple.rftSelector .rftSelectorCategory {28 background-color: #6529b7;29 }30 .gamelab .green.rftSelector .rftSelectorCategory {31 background-color: #3aa605;32 }33 .gamelab .orange.rftSelector .rftSelectorCategory {34 background-color: #ff5b12;35 11 } 36 12 .gamelab .rftLineWithButtons .rftLineWithButtonsButtons { … … 39 15 line-height: 24px; 40 16 margin: 0; 17 padding: 0; 41 18 } 42 19 .gamelab .rftLineWithButtons .rftLineWithButtonsButtons .rftBlockButton { … … 44 21 clear: none; 45 22 } 46 .gamelab .rft Selector .rftLineWithButtons .rftLineWithButtonsTitle {23 .gamelab .rftLineWithButtons .rftLineWithButtonsTitle { 47 24 float: left; 48 25 margin: 0 8px 0 8px; … … 51 28 width: 8px; 52 29 height: 24px; 53 background-color: #ff0000;54 30 float: left; 55 31 margin: 0; 56 32 } 57 .gamelab .rftSelectorSelected rftSelectorColor.red { 58 /* NO. Don't do that! Change the background color property using JS instead! Event handler for changeContentStatus on the rftSelector!!! */ 33 34 /* Background colour settings for the various contexts of rftLineWithButtons */ 35 .gamelab .rftSelector .rftLineWithButtons { 36 background-color: #ffffff; 37 color: #000000; 59 38 } 39 .gamelab .blue.rftSelector .rftLineWithButtons { 40 background-color: #0072bc; 41 color: #ffffff; 42 } 43 .gamelab .red.rftSelector .rftLineWithButtons { 44 background-color: #8c0310; 45 color: #ffffff; 46 } 47 .gamelab .green.rftSelector .rftLineWithButtons { 48 background-color: #3aa605; 49 color: #ffffff; 50 } 51 .gamelab .purple.rftSelector .rftLineWithButtons { 52 background-color: #6529b7; 53 color: #ffffff; 54 } 55 .gamelab .orange.rftSelector .rftLineWithButtons { 56 background-color: #ff5b12; 57 color: #ffffff; 58 } 59 60 /* Black-on-white setting for non-header lines in the rftSelector */ 61 .gamelab .rftSelector .rftSelectorSelected .rftLineWithButtons { 62 background-color: #ffffff; 63 color: #000000; 64 } 65 .gamelab .rftSelector .rftSelectorOptions .rftLineWithButtons { 66 background-color: #ffffff; 67 color: #000000; 68 } 69 70 /* Colour settings for the rftSelectorColor status indicator */ 71 .gamelab .rftSelectorSelected .rftSelectorColor.conflict { 72 background-color: #ff0000; 73 } 74 .gamelab .rftSelectorSelected .rftSelectorColor.pending { 75 background-color: #ff8000; 76 } 77 .gamelab .rftSelectorSelected .rftSelectorColor.success { 78 background-color: #00ff00; 79 } 80 81 /* NOT SURE WHAT THIS DOES ATM...KEEP HERE FOR FUTURE REFERENCE IF NON-SELECTOR LINES FAIL TO DISPLAY PROPERLY 60 82 .gamelab .rftSelector .rftSelectorCategory .rftLineWithButtons { 61 83 display: inline-block; 62 color: #ffffff;63 background-color: transparent;64 84 width: 100% !important; 65 85 } 86 */ -
Dev/branches/rest-dojo-ui/client/rft/ui/LineWithActionsWidgetThijs.js
r335 r338 1 define(['dojo/_base/declare','dojo/_base/lang','dojo/on','dojo/dom', 'dijit/form/Button',1 define(['dojo/_base/declare','dojo/_base/lang','dojo/on','dojo/dom', 'dojo/dom-class', 'dijit/form/Button', 2 2 'dijit/_WidgetBase','dijit/_TemplatedMixin','dijit/_WidgetsInTemplateMixin', 3 3 'dojo/text!./templates/LineWithActionsWidget.html' 4 4 ], 5 function(declare,lang,on,dom, Button,_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin,templateString){5 function(declare,lang,on,dom,domClass,Button,_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin,templateString){ 6 6 return declare('rft.ui.LineWithActionsWidgetThijs',[_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin],{ 7 7 templateString: templateString, 8 8 baseClass: 'rftLineWithButtons', 9 9 title: '', 10 color: "blue",10 modifiers: "red", 11 11 userObject: null, 12 12 actions: {}, … … 18 18 this.inherited(arguments); 19 19 this._setupActions(); 20 domClass.add(this.domNode, this.modifiers); 20 21 this.refresh(); 21 22 }, … … 24 25 25 26 if (this.actions[action].properties.blockButton == true) { // BlockButton 26 new Button( 27 lang.mixin({ 28 baseClass: 'rftBlockButton', 29 "class": this.color, 30 label: action, 31 iconClass: 'rftIcon rftIcon'+action, 32 title: action, 33 onClick: lang.hitch(this, function(){ 34 this.actions[action].callback(this.userObject); 35 }) 36 }, this.actions[action].properties)).placeAt(this.buttonsNode); 27 var properties = lang.mixin( 28 { 29 baseClass: 'rftBlockButton', 30 modifiers: this.modifiers, 31 label: action, 32 iconClass: 'rftIcon rftIcon'+action, 33 title: action, 34 onClick: lang.hitch(this, function(){ 35 this.actions[action].callback(this.userObject); 36 }) 37 }, 38 this.actions[action].properties); 39 properties["class"] = properties.modifiers; 40 41 new Button(properties).placeAt(this.buttonsNode); 37 42 } else { //InlineButton 38 43 new Button( … … 48 53 }, this.actions[action].properties)).placeAt(this.buttonsNode); 49 54 } 50 51 52 53 /* THIS USES DEPRECATED CLASSES!!!54 if (this.actions[action].blockButton == true) { // BlockButton!55 new BlockButton({56 label: action,57 iconType: action,58 highlightColor: this.actions[action].color || "green",59 onClick: lang.hitch(this, function(){60 this.actions[action].callback(this.userObject);61 })62 }).placeAt(this.buttonsNode);63 64 } else { // InlineButton!65 new InlineButton({66 label: action,67 iconType: action,68 highlightColor: "Black",69 onClick: lang.hitch(this, function(){70 this.actions[action].callback(this.userObject);71 })72 }).placeAt(this.buttonsNode);73 }74 */75 55 } 76 56 }, -
Dev/branches/rest-dojo-ui/client/rft/ui/SelectorThijs.js
r335 r338 26 26 title: "The professional as a participant", 27 27 baseClass: 'rftSelector', 28 color: 'red', // This is hardcoded for now, will serve as default value later! (Selector defaults to blue!) Only affects color of lineWithActions28 modifiers: 'blue', // Extra CSS classes 29 29 postCreate: function() { 30 domClass.add(this.domNode, this.modifiers); 31 domClass.add(this.selectedColorNode, "pending"); 30 32 var infoFunction = function() { 31 33 alert("Show info here"); … … 33 35 new LineWithActionsWidget({ 34 36 title: this.title, 35 color: this.color,37 modifiers: this.modifiers, 36 38 actions: { 37 39 "Accept" : { … … 39 41 properties: { 40 42 blockButton: true, 41 color: this.color43 modifiers: this.modifiers 42 44 } 43 45 } … … 46 48 var selectorLine = new LineWithActionsWidget({ 47 49 title: 'None', 48 color: this.color,50 modifiers: this.modifiers, 49 51 actions: { 50 52 "HalfArrowDown" : { … … 84 86 properties: { 85 87 blockButton: true, 86 color: this.color,88 modifiers: this.modifiers, 87 89 showLabel: false 88 90 } … … 102 104 } 103 105 }).placeAt(this.optionsNode); 104 /*105 new LineWithActionsWidget({106 title: 'Do you personally know ithers present at the current session?',107 actions: {108 "Inspect" : infoFunction109 }110 }).placeAt(this.optionsNode);111 new LineWithActionsWidget({112 title: 'Have you worked with other participants before?',113 actions: {114 "Inspect" : infoFunction115 }116 }).placeAt(this.optionsNode);117 */118 106 } 119 107 }); -
Dev/branches/rest-dojo-ui/client/rft/ui/templates/SelectorThijs.html
r335 r338 1 <div class="${color}">1 <div> 2 2 <div class="${baseClass}Category"> 3 3 <div class="${baseClass}Title" data-dojo-attach-point="titleNode"></div>
Note: See TracChangeset
for help on using the changeset viewer.