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 -%>
    
181-200 / 500 Alle rijen tonen
181temporeCorporis rerum id possimus adipisci placeat omnis et.No09 May 12:37Edit
182voluptates nullaUllam est et quisquam perspiciatis qui aliquid neque dolores.No22 May 12:37Edit
183iureFugiat sit unde quibusdam iste autem in.No14 Apr 12:37Edit
184minusVoluptatem harum fuga est hic fugit.No05 Apr 12:37Edit
185aspernaturAutem minus et libero inventore.No11 Apr 12:37Edit
186velit dignissimosQuia et molestias quidem sit minus.No11 Apr 12:37Edit
187quodVitae voluptates voluptas et aliquam aperiam eos.No31 Mar 12:37Edit
188aliquid adipisciEaque maxime mollitia in vel.No21 May 12:37Edit
189delectus utEt et qui qui dolorum quod voluptatem sequi.No27 May 12:37Edit
190recusandae nisi doloribusPerspiciatis rerum nihil ea ipsum.No30 Mar 12:37Edit
191quis aut architectoNatus molestiae inventore voluptatem.No30 Apr 12:37Edit
192eumDoloribus sequi facere aut dolor sed quae quos.No19 Jun 12:37Edit
193idQuia voluptas sit aut sed maiores accusantium soluta.No15 May 12:37Edit
194quoQuis fugiat aperiam sapiente veniam provident odio inventore qui.No26 Mar 12:37Edit
195nihilVoluptate magnam autem iusto rerum ipsa distinctio praesentium odio.No04 Jun 12:37Edit
196laudantiumRecusandae modi sed hic doloribus vel.No01 May 12:37Edit
197non autemHarum eum labore ad.No25 May 12:37Edit
198eaDolorum voluptates quae veniam porro repudiandae nam eos qui.No24 Apr 12:37Edit
199ea consectetur velitConsectetur fuga adipisci ad quia alias qui.No15 Jun 12:37Edit
200minusImpedit est velit veniam architecto.No21 May 12:37Edit

Fork me on GitHub