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 -%>
    
61-80 / 500 Alle rijen tonen
28laborum enim voluptasDignissimos sed laudantium in consequatur quaerat molestias optio maxime.No05 May 12:37Edit
32voluptatem ipsam liberoBlanditiis omnis enim voluptas fugit molestiae.No07 Jun 12:37Edit
34illo voluptasEsse et fuga voluptate eveniet qui.No14 Jun 12:37Edit
40dolorSapiente voluptas aspernatur non nulla illo aperiam et.No10 May 12:37Edit
78exercitationem sapienteQuasi numquam aut magnam expedita dolor repudiandae officiis.No07 Apr 12:37Edit
85voluptatibus inventoreHarum aliquam amet et inventore.Yes12 Jun 12:37Edit
87nostrumTempore ad qui velit nihil ipsam.No13 Jun 12:37Edit
92est praesentiumModi pariatur voluptatem perspiciatis.No08 Jun 12:37Edit
98aperiam rerumRerum quaerat eligendi voluptatem.Yes31 May 12:37Edit
113exercitationemExplicabo ratione quidem non sunt quibusdam rerum et.No02 Apr 12:37Edit
116dolorem consecteturNemo voluptate quo cum natus ut dolorum maxime consequuntur.No17 May 12:37Edit
119quo est aliquidFugiat reprehenderit est quia ducimus voluptatem maiores tempore id.No19 May 12:37Edit
130esse rationeAliquid dolore aut magnam voluptatum ad.No08 Apr 12:37Edit
134impedit voluptas eligendiIncidunt dolores sint amet dignissimos dolorum illum officiis dolorem.No10 May 12:37Edit
148porro ducimus voluptatibusRerum sint et minima.No18 Mar 12:37Edit
163ipsa quoEt vel dolorum quae.No11 Apr 12:37Edit
168adDolorum id sint assumenda quos consectetur aut eveniet.No25 Apr 12:37Edit
176vitae ducimus consequunturDolores tenetur consequatur nihil minima id delectus consequatur et.No25 Apr 12:37Edit
182voluptates nullaUllam est et quisquam perspiciatis qui aliquid neque dolores.No22 May 12:37Edit
184minusVoluptatem harum fuga est hic fugit.No05 Apr 12:37Edit

Fork me on GitHub