WiceGrid 3.6.0.pre4 examples

Most simple grid

The simplest grid is defined by the grid helper with column blocks inside for each column. The value of each column block is the contents of a cell.

  • # encoding: utf-8
    class Basics1Controller < ApplicationController
      def index
        @tasks_grid = initialize_grid(Task)
      end
    end
    
  • .well
      %h2= current_page_title
      %p
        The simplest grid is defined by the
        %code grid
        helper with column blocks inside  for each column.
        The value of each column block is the contents of a cell.
    
    = show_code
    
    .row-fluid
      .col-md-12
        = render   'grid'
  • <%= grid(@tasks_grid) do |g|
    
      g.column do |task|
        task.id
      end
    
      g.column  do |task|
        task.title
      end
    
      g.column do |task|
        task.description
      end
    
      g.column do |task|
        task.archived? ? 'Yes' : 'No'
      end
    
      g.column do |task|
        task.created_at.to_s(:short)
      end
    
      g.column do |task|
        link_to('Edit', edit_task_path(task))
      end
    end -%>
    
161-180 / 500 Alle rijen tonen
161autCommodi delectus eaque quia occaecati molestiae voluptate ut qui.No19 Jun 12:37Edit
162quia nihil laboreDolor vitae perspiciatis error occaecati accusamus aperiam.No19 Apr 12:37Edit
163ipsa quoEt vel dolorum quae.No11 Apr 12:37Edit
164beatae consecteturSimilique dolorem provident et accusantium aliquid inventore omnis.No07 Jun 12:37Edit
165expeditaMolestiae porro totam ipsa enim cupiditate provident qui.No12 May 12:37Edit
166ut exVoluptatem qui aut et accusamus saepe eius laboriosam.No06 May 12:37Edit
167enimNon quaerat porro ut aspernatur placeat qui.No28 Mar 12:37Edit
168adDolorum id sint assumenda quos consectetur aut eveniet.No25 Apr 12:37Edit
169vitae oditLaborum laboriosam odio cum ex.No07 Jun 12:37Edit
170fugiatAutem quia deleniti veritatis facere laudantium.No20 Apr 12:37Edit
171qui est etEt temporibus sed maiores.No09 Apr 12:37Edit
172nihil ipsamRatione repudiandae at odio et.No22 Apr 12:37Edit
173etQuod eum nulla consequatur tempora cumque consectetur nam.No29 Mar 12:37Edit
174ipsa quia voluptasQuod assumenda deleniti cupiditate soluta neque.No18 Apr 12:37Edit
175aperiam omnisNisi qui itaque quia quaerat.No02 May 12:37Edit
176vitae ducimus consequunturDolores tenetur consequatur nihil minima id delectus consequatur et.No25 Apr 12:37Edit
177ex perferendis velitSed qui sunt ut quod ex.No18 Mar 12:37Edit
178molestias voluptas quiIn tempora quam expedita officiis quod.No14 Apr 12:37Edit
179omnis et facilisEt est rem necessitatibus earum iste.No29 Mar 12:37Edit
180cupiditate tenetur omnisRerum sed atque rem quos aliquid id.No17 Jun 12:37Edit

Fork me on GitHub