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 -%>
    
401-420 / 500 Alle rijen tonen
168adDolorum id sint assumenda quos consectetur aut eveniet.No25 Apr 12:37Edit
191quis aut architectoNatus molestiae inventore voluptatem.No30 Apr 12:37Edit
476facere voluptasOccaecati consectetur neque ullam dolores qui.Yes21 May 12:37Edit
98aperiam rerumRerum quaerat eligendi voluptatem.Yes31 May 12:37Edit
32voluptatem ipsam liberoBlanditiis omnis enim voluptas fugit molestiae.No07 Jun 12:37Edit
411iureVelit error et fugiat fuga provident debitis expedita.No21 Mar 12:37Edit
490maximeIncidunt ducimus iste illum inventore nostrum.No21 May 12:37Edit
13utEst voluptas impedit perferendis excepturi aliquid doloremque.No22 Mar 12:37Edit
467in error praesentiumEarum temporibus quae laudantium.No12 May 12:37Edit
468officiisUt a qui quod saepe unde excepturi.No07 Jun 12:37Edit
28laborum enim voluptasDignissimos sed laudantium in consequatur quaerat molestias optio maxime.No05 May 12:37Edit
78exercitationem sapienteQuasi numquam aut magnam expedita dolor repudiandae officiis.No07 Apr 12:37Edit
481etEveniet repellendus necessitatibus nam neque.No05 Jun 12:37Edit
288consectetur dolores delectusQuia vel vitae dolorum iusto illo velit.No18 May 12:37Edit
220vero rerumEt aliquid id sed et.No24 Mar 12:37Edit
148porro ducimus voluptatibusRerum sint et minima.No18 Mar 12:37Edit
134impedit voluptas eligendiIncidunt dolores sint amet dignissimos dolorum illum officiis dolorem.No10 May 12:37Edit
264magnam laboriosamTemporibus laborum sapiente cupiditate sed porro consequuntur.No15 Jun 12:37Edit
130esse rationeAliquid dolore aut magnam voluptatum ad.No08 Apr 12:37Edit
184minusVoluptatem harum fuga est hic fugit.No05 Apr 12:37Edit

Fork me on GitHub