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 -%>
    
481-500 / 500 Alle rijen tonen
188aliquid adipisciEaque maxime mollitia in vel.No21 May 12:37Edit
49laborumFacere perferendis sapiente atque.No30 Apr 12:37Edit
186velit dignissimosQuia et molestias quidem sit minus.No11 Apr 12:37Edit
184minusVoluptatem harum fuga est hic fugit.No05 Apr 12:37Edit
183iureFugiat sit unde quibusdam iste autem in.No14 Apr 12:37Edit
440ut quae atFugiat voluptate veniam distinctio aut voluptatibus est et.No29 Apr 12:37Edit
337estEos dolores ipsum ipsam mollitia.No21 Apr 12:37Edit
181temporeCorporis rerum id possimus adipisci placeat omnis et.No09 May 12:37Edit
177ex perferendis velitSed qui sunt ut quod ex.No18 Mar 12:37Edit
27eum velUllam tenetur culpa error fugit sunt.No15 Mar 12:37Edit
175aperiam omnisNisi qui itaque quia quaerat.No02 May 12:37Edit
171qui est etEt temporibus sed maiores.No09 Apr 12:37Edit
343dolorem sit molestiasEaque exercitationem aut dolorem amet.No18 Apr 12:37Edit
170fugiatAutem quia deleniti veritatis facere laudantium.No20 Apr 12:37Edit
168adDolorum id sint assumenda quos consectetur aut eveniet.No25 Apr 12:37Edit
167enimNon quaerat porro ut aspernatur placeat qui.No28 Mar 12:37Edit
165expeditaMolestiae porro totam ipsa enim cupiditate provident qui.No12 May 12:37Edit
47temporibus iure delectusCumque placeat aut vel repellat omnis accusamus error odio.No22 Apr 12:37Edit
349et similiqueDistinctio sunt ut doloribus adipisci rerum in.No10 Apr 12:37Edit
162quia nihil laboreDolor vitae perspiciatis error occaecati accusamus aperiam.No19 Apr 12:37Edit

Fork me on GitHub