Sha256: 7b5a9f8973db581aadc44f572c3cf9635db564c6ffd84317e7915a55d8c86f0a

Contents?: true

Size: 1.22 KB

Versions: 12

Compression:

Stored size: 1.22 KB

Contents

:css
  table.my-grid {
    border: 1px solid red;
  }
  table.my-grid tr.my-header {
    background-color: #ebebeb;
  }


.well
  %h2= current_page_title
  %ul
    %li
      %code :html
      in the
      %code grid
      helper defines html arguments for the
      %code table
      tag.

    %li
      %code :header_tr_html
      in the
      %code grid
      helper defines html attributes for the header rows with column names and filters.


    %li
      %code :html
      in the
      %code column
      helper defines html attributes for the
      %code td
      tag.


    %li
      %code g.row_attributes do |record| ... end
      is similar to a
      %code column
      definition, but returns a hash of html attributes to be added to each
      %code tr.
      Because the block is evaluated for each record, just like
      %column
      , the returned value can be calculated dynamically depending on the record.

    %li
      Each
      %code column
      block can return a 2-value array, the first value of which is the content of the cell, and
      the second is a hash of html attributes for the
      %code td
      tag.

= show_code


.row-fluid
  .col-md-12
    = render   'grid1'


.row-fluid
  .col-md-12
    = render   'grid2'

Version data entries

12 entries across 12 versions & 2 rubygems

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