Ignore:
Timestamp:
04/23/13 17:33:48 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Implemented Scale and ScaleConfig? widget.

Location:
Dev/trunk/client/qed/model/widgets
Files:
3 added
2 moved

Legend:

Unmodified
Added
Removed
  • Dev/trunk/client/qed/model/widgets/ScaleWidget.js

    r433 r434  
    3333        },
    3434        _renderHead: function() {
     35            this.minNode.innerHTML = this.minLabel || "";
     36            this.maxNode.innerHTML = this.maxLabel || "";
     37            if ( this.naLabel !== null ) {
     38                this.naNode.innerHTML = this.naLabel;
     39            }
    3540            for (var i = this.min; i <= this.max; i++) {
    3641                domConstruct.create("th", {
    3742                    innerHTML: i.toString()
    38                 }, this.rangeNode, "after");
    39             }
    40             if ( this.naLabel !== null ) {
    41                 this.naNode.innerHTML = this.naLabel;
     43                }, this.minNode, "after");
    4244            }
    4345        },
  • Dev/trunk/client/qed/model/widgets/templates/ScaleWidget.html

    r433 r434  
    44      <tr>
    55        <th class="item"></th>
    6         <th data-dojo-attach-point="rangeNode" class="min"></th>
    7         <th class="max"></th>
     6        <th data-dojo-attach-point="minNode" class="min"></th>
     7        <th data-dojo-attach-point="maxNode" class="max"></th>
    88        <th class="na" data-dojo-attach-point="naNode"></th>
    99      </tr>
Note: See TracChangeset for help on using the changeset viewer.