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 -%>
    
121-140 / 500 Alle rijen tonen
381eosId quia ipsa laudantium.No12 May 12:37Edit
435eos deseruntQuia amet occaecati et non sed repudiandae voluptatibus id.No20 Apr 12:37Edit
246eos laborumDelectus assumenda sint praesentium est.No19 Apr 12:37Edit
232eos quam doloremEt aspernatur voluptatem qui commodi esse.No18 Jun 12:37Edit
274eos sint ametVitae nihil et quos aliquam possimus porro qui.No19 Jun 12:37Edit
52eos temporibus omnisSapiente accusamus recusandae sunt animi voluptates dolorem enim.No13 Mar 12:37Edit
204error earum quiAb labore rerum quisquam rerum enim magni.No12 Apr 12:37Edit
130esse rationeAliquid dolore aut magnam voluptatum ad.No08 Apr 12:37Edit
120esse voluptas deseruntFugit error sed id rem doloribus.No07 May 12:37Edit
41estIpsum illo corrupti nesciunt facere.No10 Apr 12:37Edit
266estEum quam et quia laudantium.No06 Jun 12:37Edit
337estEos dolores ipsum ipsam mollitia.No21 Apr 12:37Edit
493estCorporis vel omnis et quam illo.No28 May 12:37Edit
341est cumVero dolore iusto ducimus ea illum dicta consequuntur.No17 May 12:37Edit
144est errorQui facere accusantium sint iusto quod consectetur dolores.No15 Apr 12:37Edit
92est praesentiumModi pariatur voluptatem perspiciatis.No08 Jun 12:37Edit
15est ut autVero distinctio voluptatem veritatis.No17 Apr 12:37Edit
340est vitaeSint sit quia minima nostrum ut neque.No17 Jun 12:37Edit
22etReiciendis non officia aut omnis quia minima.No19 May 12:37Edit
29etEst nesciunt accusantium repudiandae est officia ipsa.No01 May 12:37Edit

Fork me on GitHub