Sha256: f9089d3e7cfa8dc8ead17180824eff4c929f39083096ff4922d92266e9bb5ca2

Contents?: true

Size: 515 Bytes

Versions: 22

Compression:

Stored size: 515 Bytes

Contents

Rev.registerComponent 'Modal',
  propTypes:
    isOpen: React.PropTypes.bool,
    onBackgroundClick: React.PropTypes.func

  getDefaultProps: ->
    isOpen: false

  onBackgroundClick: (e)->
    @props.onBackgroundClick() if @props.onBackgroundClick;

  render: ->
    if @props.isOpen
      <div className="RevModal">
        <div className="RevModal-background" onClick={@onBackgroundClick} />
        <div className="RevModal-content">
          {@props.children}
        </div>
      </div>
    else
      null

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
revelry_core-0.1.11.6 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.11.5 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.11.2 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.11.1 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.11.0 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.10.7 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.10.6 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.10.5 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.10.4 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.10.3 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.10.2 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.10.1 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.10.0 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.9.2 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.9.1 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.9.0 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.8.6 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.8.5 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.8.4 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx
revelry_core-0.1.8.3 app/assets/javascripts/revelry/ui/modals/Modal.js.cjsx