Sha256: 09bc70670b90331f80cf6718440ba49814c7fbce8967469fc3c830ed0bd6b096
Contents?: true
Size: 709 Bytes
Versions: 5
Compression:
Stored size: 709 Bytes
Contents
#= require ./base MomentPicker = Tao.Form.MomentPicker class MomentPicker.MinuteSegment extends MomentPicker.SegmentBase @tag 'tao-moment-picker-minute-segment' segmentName: 'minute' _bind: -> @on 'click', '.minute', (e) => $minute = $ e.currentTarget momentData = _.clone @momentData momentData.minute = $minute.data 'minute' @namespacedTrigger 'dataSelect', [momentData] setMomentData: (momentData) -> super @_render() @momentData _render: -> @jq.find('.minute.selected').removeClass 'selected' unless _.isNil @value() @jq.find(".minute[data-minute='#{@value()}']").addClass 'selected' TaoComponent.register MomentPicker.MinuteSegment
Version data entries
5 entries across 5 versions & 1 rubygems