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 -%>
    
361-380 / 500 Alle rijen tonen
456inventore voluptasQuis molestiae ipsa omnis blanditiis ut dolores.No31 May 12:37Edit
77sed quibusdam isteQuis non ducimus quia perferendis.No03 Jun 12:37Edit
215aliquid sed suntQuis sed voluptate voluptatibus voluptatem doloremque et.Yes12 May 12:37Edit
495qui ut inQuis ut eos a et.No21 Apr 12:37Edit
174ipsa quia voluptasQuod assumenda deleniti cupiditate soluta neque.No18 Apr 12:37Edit
261cumque voluptasQuod distinctio iusto quia quas voluptatem est.No05 Apr 12:37Edit
497impedit quoQuod earum illum voluptatem.No11 Apr 12:37Edit
173etQuod eum nulla consequatur tempora cumque consectetur nam.No29 Mar 12:37Edit
221sequiQuo nobis aut ut dolor perferendis odit.No17 Apr 12:37Edit
362eum sapienteQuos adipisci dolorem vel numquam sint.No11 May 12:37Edit
480quas sapiente rerumQuos aut dolor error nihil at placeat quia id.No25 Apr 12:37Edit
71atRatione distinctio eligendi quaerat.No28 Apr 12:37Edit
441in autRatione quam eveniet corporis.No23 May 12:37Edit
172nihil ipsamRatione repudiandae at odio et.No22 Apr 12:37Edit
196laudantiumRecusandae modi sed hic doloribus vel.No01 May 12:37Edit
152nihilReiciendis explicabo sit porro veritatis illum nemo asperiores est.No19 Mar 12:37Edit
22etReiciendis non officia aut omnis quia minima.No19 May 12:37Edit
359placeat molestiae officiisReiciendis soluta quo voluptas quod.No20 Mar 12:37Edit
402atReiciendis ut reprehenderit occaecati quia voluptatum error debitis.No01 Jun 12:37Edit
45rerumRepellat et ut eos ea illo et dolorum voluptatem.No15 Jun 12:37Edit

Fork me on GitHub