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 -%>
    
301-320 / 500 Alle rijen tonen
88culpaOccaecati aut eum vero quasi dolorem.No25 May 12:37Edit
476facere voluptasOccaecati consectetur neque ullam dolores qui.Yes21 May 12:37Edit
139aliquid oditOccaecati veritatis asperiores vitae aut.No19 Apr 12:37Edit
102inventore eligendi voluptasOdio autem at officia tempora labore.No11 Jun 12:37Edit
84doloreOdio laboriosam velit pariatur ea autem distinctio.No04 Apr 12:37Edit
149omnis errorOdit voluptatem corporis reprehenderit soluta reiciendis.No12 Mar 12:37Edit
432magni temporeOfficiis a quaerat quae natus est libero.No26 Mar 12:37Edit
99solutaOfficiis omnis esse est debitis laboriosam.No25 Mar 12:37Edit
419voluptatem rerumOmnis eos labore nulla temporibus provident ratione sed excepturi.Yes21 Apr 12:37Edit
131iure autem ametOmnis tenetur dolores commodi consequatur nobis.No05 May 12:37Edit
269culpa assumendaOmnis voluptatem atque et mollitia a.No12 Mar 12:37Edit
445delectusOptio aut tempora mollitia corporis dicta temporibus eum vitae.No13 May 12:37Edit
313impeditOptio repellat sapiente est excepturi.No29 May 12:37Edit
312repellendus perferendis vitaePariatur officia maxime libero ut vel dolor delectus.No17 May 12:37Edit
412nonPerferendis consequatur error doloremque non voluptas sed aspernatur animi.No17 Mar 12:37Edit
408quibusdam voluptatePerferendis sit rerum aliquam ullam et quia nemo.No10 Apr 12:37Edit
356saepe illum essePerferendis ut ut quo nesciunt amet itaque.No16 May 12:37Edit
190recusandae nisi doloribusPerspiciatis rerum nihil ea ipsum.No30 Mar 12:37Edit
438undePlaceat occaecati sunt at dolor quos aspernatur rerum voluptatem.No26 Apr 12:37Edit
12explicabo hicPorro in nisi ea sunt consequatur est incidunt et.No26 May 12:37Edit

Fork me on GitHub