Sha256: e84bcca5a47b293260227309e6b9223dba94b141232accc87667ffc5d037e0ab

Contents?: true

Size: 389 Bytes

Versions: 12

Compression:

Stored size: 389 Bytes

Contents

Rev.pullInto(this) 'Input'

Rev.registerComponent 'Switch',

  componentWillMount: ->
    @props.id = "RevSwitch-#{_.uniqueId()}" unless @props.id?

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
revelry_core-0.1.6.4 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.6.3 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.6.2 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.6.1 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.5 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.4 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.3 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.2 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.1 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.1.0 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.0.1 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx
revelry_core-0.0.0 app/assets/javascripts/revelry/ui/forms/Switch.js.cjsx