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 -%>
    
461-480 / 500 Voir tous
253quosAut fuga qui excepturi ut tempora dolor voluptatem.Yes26 May 12:37Edit
254ex estIpsa enim provident quia.Yes10 Jun 12:37Edit
19id rem eaIn odio quia laborum quam dicta nulla.Yes29 Mar 12:37Edit
111sit eaCulpa numquam dolorem corporis corrupti aliquam.Yes03 Jun 12:37Edit
414quo architecto nonLaudantium iusto dolor facere vero provident sunt.Yes19 May 12:37Edit
452illum et voluptatemAccusamus quis quis sapiente distinctio aut et quaerat asperiores.Yes13 May 12:37Edit
416ipsamSit dolore accusantium maxime.Yes28 Apr 12:37Edit
498sedQui sint eos distinctio vel assumenda sed animi quae.Yes05 Apr 12:37Edit
393nihilAut non incidunt omnis assumenda.Yes18 Apr 12:37Edit
379vero repellatUt sed id deserunt.Yes13 Jun 12:37Edit
469natus autemSed deleniti iste et eos magnam delectus in sequi.Yes10 Jun 12:37Edit
419voluptatem rerumOmnis eos labore nulla temporibus provident ratione sed excepturi.Yes21 Apr 12:37Edit
230aliquid rerum modiFugit hic blanditiis esse alias.Yes23 Apr 12:37Edit
231quia quisCupiditate error facilis qui nobis modi hic.Yes21 Mar 12:37Edit
31debitis pariatur illoTemporibus velit id et porro dolor.Yes18 May 12:37Edit
496velit non pariaturQuia possimus rerum eum architecto.Yes07 Apr 12:37Edit
233nesciunt suscipit quisDicta vel atque occaecati quisquam qui est tempora.Yes14 Mar 12:37Edit
367similiqueNeque fuga recusandae expedita omnis et.Yes07 May 12:37Edit
35modiAnimi quod iste sunt.Yes16 Jun 12:37Edit
350et quoRerum rem quos officiis molestias earum pariatur.Yes06 Apr 12:37Edit

Fork me on GitHub