Sha256: 96d876f20a3aacf535a352c6b93dea2540fe982d801e2bf1624bc4d7ddb158e4

Contents?: true

Size: 664 Bytes

Versions: 12

Compression:

Stored size: 664 Bytes

Contents

.well
  %h2= current_page_title
  %p
    What if there no records to render in a grid?
    There are three ways to define what to show in this case:
    %ul
      %li
        %code blank_slate
        with a block. This looks like a column definition, but the value
        returned by the block is rendred when there are no records.
      %li
        %code blank_slate
        whithout a block, but with one string argument.
      %li
        %code blank_slate
        with parameter
        %code partial:  "partial_name"
        which defines a partial to render.

= show_code

.example1= render   'grid1'
.example2= render   'grid2'
.example3= render   'grid3'

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
wice_grid-6.1.3 spec/support/test_app/app/views/no_records/index.html.haml
wice_grid-6.1.2 spec/support/test_app/app/views/no_records/index.html.haml
wice_grid-6.1.1 spec/support/test_app/app/views/no_records/index.html.haml
wice_grid-6.1.0 spec/support/test_app/app/views/no_records/index.html.haml
pwice_grid-7.0.0 spec/support/test_app/app/views/no_records/index.html.haml
pwice_grid-6.1.2 spec/support/test_app/app/views/no_records/index.html.haml
pwice_grid-6.1.1 spec/support/test_app/app/views/no_records/index.html.haml
pwice_grid-6.1.0 spec/support/test_app/app/views/no_records/index.html.haml
pwice_grid-5.0.2 spec/support/test_app/app/views/no_records/index.html.haml
pwice_grid-5.0.1 spec/support/test_app/app/views/no_records/index.html.haml
pwice_grid-5.0.0 spec/support/test_app/app/views/no_records/index.html.haml
wice_grid-4.1.0 spec/support/test_app/app/views/no_records/index.html.haml