Sha256: 046cc9addd125702a087f5d760a8b5aeec51b75c3c8277eea2e37fc4539079e7

Contents?: true

Size: 413 Bytes

Versions: 28

Compression:

Stored size: 413 Bytes

Contents

Rev.pullInto(this) 'Input'

Rev.registerComponent 'Switch',

  getId: ->
    if @props.id?
      @props.id
    else
      @_id ||= "RevSwitch-#{_.uniqueId()}"

  render: ->
    props = @getPropsWithout 'className'
    className = @classAdd
      'RevSwitch': true
      'switch': true
    <div className={className}>
      <input {...props} id={@getId()} type="checkbox" /><label htmlFor={@getId()} />
    </div>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
revelry_core-0.1.8.2 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.8.1 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.8.0 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.7.0 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.6.8 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.6.7 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.6.6 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.6.5 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx