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