Sha256: 82d33c554c8e39646b9c1431246a36e234328502cdb5bbe976b8181bb8dd6ac4

Contents?: true

Size: 1.3 KB

Versions: 12

Compression:

Stored size: 1.3 KB

Contents

.well
  %h2= current_page_title
  %p
    You can easily add a column with checkboxes for each row with
    %code g.action_column
    \.
    Normally WiceGrid does not use a form, but its filters work correctly when placed inside a form, so you can use a form to process
    the selected records while keeping the state of the filters. Another way could be reading the selected checkoxes with the help
    of a simple javascript.
  %p
    By default the checkboxes have name
    %code "grid_name[selected][]"
    , but you can change
    %code selected
    to something else with parameter
    %code param_name:  'my-parameter-name'
  %p
    The value of the checkox is the id by default, but you can change it with parameter
    %code object_property:  'some_object_property'
    \.
  %p
    %code select_all_buttons:  false
    hides the "(de)select all" icons, and
    %code html: {class: 'my_class'}
    changes the css class of the checkboxes.

= show_code

= dump_filter_parameters_as_hidden_fields(@tasks_grid)
= form_for '#', method:  :get do

  - if @selected
    .well
      Selected tasks:
      = @selected.to_sentence

  .row-fluid
    .col-md-12
      %p
        %button.btn.btn-default{'type' => 'submit'} Process tasks

      = render   'grid'

      %p
        %button.btn.btn-default{'type' => 'submit'} Process tasks

Version data entries

12 entries across 12 versions & 2 rubygems

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