Ignore:
Timestamp:
05/23/12 18:05:17 (13 years ago)
Author:
tjcschipper
Message:
  • Added rft.ui.InlineButton?, which is another preset like LargeButton? and BlockButton?. This time icon only and no label, made to fit into rftLineWithActions widgets. highlightColor: White/Black? allows for two different versions depending on icon background.
  • Make copies of rft/ui/LineWithActionsWidget and rft/ui/Selector, with -Thijs appended to the classnames. These are an attempt at integrating the newly created buttons in their intended contexts. The original classes and templates are untouched.
  • Changed LargeButton? and BlockButton? to be less hardcoded and just better.
Location:
Dev/branches/rest-dojo-ui/client/rft/ui
Files:
5 added
2 edited

Legend:

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

    r331 r333  
    77            showLabel: true,    // Or false? Documentation is retarded about this boolean... true = no label???
    88            highlightColor: 'blue', // Use the CSS class "highlightBlue" this adds to style active/hover transitions.
     9            baseClass: "rftBlockButton",
    910            postMixInProperties: function(){
    1011                if (this.iconType == "none" || this.iconType == null) {
     
    1718            postCreate: function(){
    1819                var capitalizedHighlightColor = this.highlightColor.charAt(0).toUpperCase() + this.highlightColor.slice(1);
    19                 domClass.add(this.domNode, "rftBlockButton highlight"+capitalizedHighlightColor);
     20                domClass.add(this.domNode, "highlight"+capitalizedHighlightColor);
    2021                this.inherited(arguments);
    2122            }
  • Dev/branches/rest-dojo-ui/client/rft/ui/LargeButton.js

    r331 r333  
    77            showLabel: true,    // Or false? Documentation is retarded about this boolean... true = no label???
    88            highlightColor: "blue", // Use the CSS class "highlightBlue" this adds to style active/hover transitions
     9            baseClass: "rftLargeButton",
    910            postMixInProperties: function(){
    1011                this.iconClass = "rftIcon rftIcon"+this.iconType;
     
    1314            postCreate: function(){
    1415                var capitalizedHighlightColor = this.highlightColor.charAt(0).toUpperCase() + this.highlightColor.slice(1);
    15                 domClass.add(this.domNode, "rftLargeButton highlight"+capitalizedHighlightColor);
     16                domClass.add(this.domNode, "highlight"+capitalizedHighlightColor);
    1617                this.inherited(arguments);
    1718            }
Note: See TracChangeset for help on using the changeset viewer.