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 -%>
    
1-20 / 500 Alle rijen tonen
25ab quiFugit id error esse.No29 May 12:37Edit
63accusamusPraesentium quod ipsum error odit.No15 Apr 12:37Edit
436accusantiumCorrupti qui mollitia temporibus.No05 Apr 12:37Edit
426accusantium eligendiDebitis dolore id eos tempora.No29 Apr 12:37Edit
370accusantium error exercitationemMolestiae eos quibusdam quod id voluptatem eius.No25 Apr 12:37Edit
168adDolorum id sint assumenda quos consectetur aut eveniet.No25 Apr 12:37Edit
86adipisciConsectetur optio rerum facilis explicabo enim consequatur delectus iste.No08 Apr 12:37Edit
346adipisci at nesciuntEligendi facilis ut consequatur.No18 Jun 12:37Edit
146adipisci etIncidunt porro iure esse.Yes06 Apr 12:37Edit
147adipisci ut asperioresSed sed ullam blanditiis aut consequatur mollitia ipsam et.No29 Mar 12:37Edit
81ad quo dolorTempora culpa laborum et illum suscipit facilis earum et.No05 May 12:37Edit
59alias liberoRepudiandae praesentium aut nobis saepe.No23 Mar 12:37Edit
3aliquam repudiandaeConsequatur iste similique dolorum ducimus ut.No21 Mar 12:37Edit
188aliquid adipisciEaque maxime mollitia in vel.No21 May 12:37Edit
139aliquid oditOccaecati veritatis asperiores vitae aut.No19 Apr 12:37Edit
230aliquid rerum modiFugit hic blanditiis esse alias.Yes23 Apr 12:37Edit
215aliquid sed suntQuis sed voluptate voluptatibus voluptatem doloremque et.Yes12 May 12:37Edit
79animiCorporis est inventore nesciunt est nam voluptas et.No04 May 12:37Edit
447animi accusantium utSequi dolorem distinctio sit doloremque et corporis voluptatem alias.No06 Apr 12:37Edit
175aperiam omnisNisi qui itaque quia quaerat.No02 May 12:37Edit

Fork me on GitHub