Ignore:
Timestamp:
06/04/12 16:18:24 (13 years ago)
Author:
tjcschipper
Message:
  • Changed linewithactions and selector -options- property to -modifiers-: more general approach. These extra classes are applied to the root domNode of the widget during the postCreate phase instead.
  • Changed rftSelector.css stuff to match this change, and allow for separate colouring of a selector and its contents.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/ui/SelectorThijs.js

    r335 r338  
    2626            title: "The professional as a participant",
    2727            baseClass: 'rftSelector',
    28             color: 'red',    // This is hardcoded for now, will serve as default value later! (Selector defaults to blue!) Only affects color of lineWithActions
     28            modifiers: 'blue',    // Extra CSS classes
    2929            postCreate: function() {
     30                domClass.add(this.domNode, this.modifiers);
     31                domClass.add(this.selectedColorNode, "pending");
    3032                var infoFunction = function() {
    3133                    alert("Show info here");
     
    3335                new LineWithActionsWidget({
    3436                    title: this.title,
    35                     color: this.color,
     37                    modifiers: this.modifiers,
    3638                    actions: {
    3739                        "Accept" : {
     
    3941                            properties: {
    4042                                blockButton: true,
    41                                 color: this.color
     43                                modifiers: this.modifiers
    4244                            }
    4345                        }
     
    4648                var selectorLine = new LineWithActionsWidget({
    4749                    title: 'None',
    48                     color: this.color,
     50                    modifiers: this.modifiers,
    4951                    actions: {
    5052                        "HalfArrowDown" : {
     
    8486                            properties: {
    8587                                blockButton: true,
    86                                 color: this.color,
     88                                modifiers: this.modifiers,
    8789                                showLabel: false
    8890                            }
     
    102104                    }
    103105                }).placeAt(this.optionsNode);
    104                 /*
    105                 new LineWithActionsWidget({
    106                     title: 'Do you personally know ithers present at the current session?',
    107                     actions: {
    108                         "Inspect" : infoFunction
    109                     }
    110                 }).placeAt(this.optionsNode);
    111                 new LineWithActionsWidget({
    112                     title: 'Have you worked with other participants before?',
    113                     actions: {
    114                         "Inspect" : infoFunction
    115                     }
    116                 }).placeAt(this.optionsNode);
    117                 */
    118106            }
    119107        });
Note: See TracChangeset for help on using the changeset viewer.