Sha256: 023d2130ed3e53b3ba282b85ecc8d6ffb69c79c764bf38b7cf8f69f68dfe28a2
Contents?: true
Size: 743 Bytes
Versions: 8
Compression:
Stored size: 743 Bytes
Contents
# <IconBarItem type="FontAwesome" icon="cog" /> Rev.registerComponent 'IconBarItem', propTypes: icon: React.PropTypes.string type: React.PropTypes.string render: -> classes = "item": true "RevIconBarItem": true <a {...@props} className={@classAdd classes}> {@renderIcon()} <label className="RevIconBarItem-label">{@props.children}</label> </a> renderIcon: -> classNameObject = "RevIconBarItem-icon" : true if @props.icon? <Rev.Components.Icon type={@props.type} icon={@props.icon} className={@classAdd classNameObject} /> else if @props.src? <img src={@props.src} className={@classAdd classNameObject} /> else null
Version data entries
8 entries across 8 versions & 1 rubygems