src/widgets/Segments.js
branchnew-model
changeset 906 4b6e154ae8de
parent 905 029a4efe9e24
child 916 ec6849bbbdcc
equal deleted inserted replaced
905:029a4efe9e24 906:4b6e154ae8de
    17     height: 10
    17     height: 10
    18 };
    18 };
    19 
    19 
    20 IriSP.Widgets.Segments.prototype.template =
    20 IriSP.Widgets.Segments.prototype.template =
    21     '<div class="Ldt-Segments-List">{{#segments}}'
    21     '<div class="Ldt-Segments-List">{{#segments}}'
    22     + '<div class="Ldt-Segments-Segment" segment-id="{{id}}" segment-text="{{text}}" segment-color="{{color}}" center-pos="{{center}}" begin-seconds="{{beginseconds}}"'
    22     + '<div class="Ldt-Segments-Segment Ldt-TraceMe" trace-info="segment-id:{{id}}" segment-id="{{id}}" segment-text="{{text}}" segment-color="{{color}}" center-pos="{{center}}" begin-seconds="{{beginseconds}}"'
    23     + 'style="left:{{left}}px; width:{{width}}px; background:{{color}}"></div>'
    23     + 'style="left:{{left}}px; width:{{width}}px; background:{{color}}"></div>'
    24     + '{{/segments}}</div>'
    24     + '{{/segments}}</div>'
    25     + '<div class="Ldt-Segments-Position"></div>';
    25     + '<div class="Ldt-Segments-Position"></div>';
    26 
    26 
    27 IriSP.Widgets.Segments.prototype.draw = function() {
    27 IriSP.Widgets.Segments.prototype.draw = function() {