Ignore:
Timestamp:
06/04/12 18:09:33 (13 years ago)
Author:
tjcschipper
Message:
  • Switched away from using custom themes, this allows us to use the default Claro theme off of a CDN, then override the needed properties using our own, much smaller stylesheets. Retains graceful degradation of dijit style.
  • Made rftLineWithActions also work outside of the context of an rftSelector.css
  • Fixed some general layout issues
  • Redid the tabs styling
File:
1 edited

Legend:

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

    r338 r339  
    22    'dijit/_WidgetBase','dijit/_TemplatedMixin','dijit/_WidgetsInTemplateMixin',
    33    'dojo/text!./templates/LineWithActionsWidget.html'
    4 ],
     4    ],
    55    function(declare,lang,on,dom,domClass,Button,_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin,templateString){
    66        return declare('rft.ui.LineWithActionsWidgetThijs',[_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin],{
     
    88            baseClass: 'rftLineWithButtons',
    99            title: '',
    10             modifiers: "red",
     10            modifiers: "blue",
    1111            userObject: null,
    1212            actions: {},
     
    2525                   
    2626                    if (this.actions[action].properties.blockButton == true) {  // BlockButton
    27                         var properties = lang.mixin(
    28                         {
     27                        var properties = lang.mixin({
    2928                            baseClass: 'rftBlockButton',
    3029                            modifiers: this.modifiers,
     
    3837                        this.actions[action].properties);
    3938                        properties["class"] = properties.modifiers;
    40                        
    4139                        new Button(properties).placeAt(this.buttonsNode);
    4240                    } else {    //InlineButton
    43                         new Button(
    44                             lang.mixin({
    45                                 baseClass: 'rftInlineButton',
    46                                 "class": "black",
    47                                 showLabel: false,
    48                                 iconClass: 'rftIcon rftIcon'+action,
    49                                 title: action,
    50                                 onClick: lang.hitch(this, function(){
    51                                     this.actions[action].callback(this.userObject);
    52                                 })
    53                             }, this.actions[action].properties)).placeAt(this.buttonsNode);
     41                        var properties = lang.mixin({
     42                            baseClass: 'rftInlineButton',
     43                            modifiers: 'black',
     44                            showLabel: false,
     45                            iconClass: 'rftIcon rftIcon'+action,
     46                            title: action,
     47                            onClick: lang.hitch(this, function(){
     48                                this.actions[action].callback(this.userObject);
     49                            })
     50                        },
     51                        this.actions[action].properties);
     52                        properties["class"] = properties.modifiers;
     53                        new Button(properties).placeAt(this.buttonsNode);
    5454                    }
    5555                }
Note: See TracChangeset for help on using the changeset viewer.