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 -%>
    
341-360 / 500 Sýna allt
496velit non pariaturQuia possimus rerum eum architecto.Yes07 Apr 12:37Edit
298iusto quae ipsamEa nihil vel ea.No10 May 12:37Edit
301autem perspiciatisSit enim itaque in earum cumque est et.No06 Apr 12:37Edit
307omnisCum ducimus rerum officiis nihil quam.No07 Jun 12:37Edit
178molestias voluptas quiIn tempora quam expedita officiis quod.No14 Apr 12:37Edit
174ipsa quia voluptasQuod assumenda deleniti cupiditate soluta neque.No18 Apr 12:37Edit
320quo corrupti autSunt voluptatem corrupti est molestias id porro.No29 Apr 12:37Edit
321quis est autemAmet veniam quia molestias eum modi impedit rerum ad.No02 May 12:37Edit
172nihil ipsamRatione repudiandae at odio et.No22 Apr 12:37Edit
337estEos dolores ipsum ipsam mollitia.No21 Apr 12:37Edit
343dolorem sit molestiasEaque exercitationem aut dolorem amet.No18 Apr 12:37Edit
344etProvident saepe expedita ipsum ut totam.No21 Apr 12:37Edit
156rationeFugiat facilis eligendi maiores facere maxime tempora magni.No14 Jun 12:37Edit
347sint aut velDeleniti et aut laboriosam praesentium.No04 May 12:37Edit
152nihilReiciendis explicabo sit porro veritatis illum nemo asperiores est.No19 Mar 12:37Edit
480quas sapiente rerumQuos aut dolor error nihil at placeat quia id.No25 Apr 12:37Edit
352autemUt provident voluptates dolor.No12 Jun 12:37Edit
144est errorQui facere accusantium sint iusto quod consectetur dolores.No15 Apr 12:37Edit
138sint quiCommodi qui fugiat eum aut consequuntur.No01 Jun 12:37Edit
356saepe illum essePerferendis ut ut quo nesciunt amet itaque.No16 May 12:37Edit

Fork me on GitHub