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
    
  • <%= 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 -%>
    
  • .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'
301-320 / 500 Alle rijen tonen
397tempore ut aliquidLaudantium labore perferendis ut doloremque.Yes05 Jun 12:37Edit
186velit dignissimosQuia et molestias quidem sit minus.No11 Apr 12:37Edit
242quia doloremque perspiciatisExpedita perspiciatis quos dolor at in quae impedit doloremque.No26 May 12:37Edit
34illo voluptasEsse et fuga voluptate eveniet qui.No14 Jun 12:37Edit
29etEst nesciunt accusantium repudiandae est officia ipsa.No01 May 12:37Edit
245iure utDolores veniam quia sint est a.No01 Jun 12:37Edit
221sequiQuo nobis aut ut dolor perferendis odit.No17 Apr 12:37Edit
174ipsa quia voluptasQuod assumenda deleniti cupiditate soluta neque.No18 Apr 12:37Edit
198eaDolorum voluptates quae veniam porro repudiandae nam eos qui.No24 Apr 12:37Edit
279et sitExpedita repudiandae accusantium necessitatibus aliquid quis aliquam.No01 Jun 12:37Edit
446ut et sitUt voluptatem est facere quasi.No04 Apr 12:37Edit
498sedQui sint eos distinctio vel assumenda sed animi quae.Yes05 Apr 12:37Edit
356saepe illum essePerferendis ut ut quo nesciunt amet itaque.No16 May 12:37Edit
315autemSapiente sit est laboriosam quo officiis ab.No14 Jun 12:37Edit
497impedit quoQuod earum illum voluptatem.No11 Apr 12:37Edit
144est errorQui facere accusantium sint iusto quod consectetur dolores.No15 Apr 12:37Edit
480quas sapiente rerumQuos aut dolor error nihil at placeat quia id.No25 Apr 12:37Edit
387sedMolestias aut iusto aliquid.No27 Mar 12:37Edit
303eosInventore nulla ut voluptatum quisquam ipsa voluptatem iste et.No13 May 12:37Edit
149omnis errorOdit voluptatem corporis reprehenderit soluta reiciendis.No12 Mar 12:37Edit

Fork me on GitHub