Sha256: c943d8591508442283e1763c85f32898d7143bd18d27a26d4733b83f3511839f

Contents?: true

Size: 672 Bytes

Versions: 8

Compression:

Stored size: 672 Bytes

Contents

Rev.pullInto(this) 'Emptyable', 'Panel'

Rev.registerExample 'Lists',

  nonEmptyList: ['There are children in this Emptyable.', 'The empty state will not be displayed.']

  emptyList: []

  render: ->
    <div>
      <h3>{"<Emptyable>"}</h3>
      <Emptyable componentClass="ul" emptyState={
        <p>This is the empty state. It will not be displayed.</p>
      }>
        {@nonEmptyList.map (x) -> <li>{x}</li>}
      </Emptyable>
      <Emptyable componentClass="ul" emptyState={
        <Panel>This is the empty state. It is displayed because the Emptyable has no children.</Panel>
      }>
        {@emptyList.map (x) -> <li>{x}</li>}
      </Emptyable>
    </div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
revelry_core-0.1.12.6 app/assets/javascripts/revelry/examples/Lists.js.cjsx
revelry_core-0.1.12.5 app/assets/javascripts/revelry/examples/Lists.js.cjsx
revelry_core-0.1.12.4 app/assets/javascripts/revelry/examples/Lists.js.cjsx
revelry_core-0.1.12.3 app/assets/javascripts/revelry/examples/Lists.js.cjsx
revelry_core-0.1.12.2 app/assets/javascripts/revelry/examples/Lists.js.cjsx
revelry_core-0.1.12.0 app/assets/javascripts/revelry/examples/Lists.js.cjsx
revelry_core-0.1.11.6 app/assets/javascripts/revelry/examples/Lists.js.cjsx
revelry_core-0.1.11.5 app/assets/javascripts/revelry/examples/Lists.js.cjsx