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 -%>
    
441-460 / 500 Voir tous
378modi iustoBeatae maxime corporis eum.No16 Jun 12:37Edit
54minima in voluptatemFacilis vitae et voluptatem similique quas dolore ipsam.No29 May 12:37Edit
428commodi omnis temporeEsse sint deleniti a rerum est praesentium unde.No18 Mar 12:37Edit
407similique voluptatumVoluptatem nesciunt quos omnis.No08 May 12:37Edit
67officia quo maioresAut aperiam aut sint voluptas voluptatibus ut cumque id.No15 Jun 12:37Edit
268quasi minima magniConsequuntur aspernatur eos cumque facere.No21 May 12:37Edit
168adDolorum id sint assumenda quos consectetur aut eveniet.No25 Apr 12:37Edit
238namDolor culpa laboriosam enim omnis ipsa.No10 Jun 12:37Edit
140mollitiaEa pariatur eveniet omnis quae recusandae consectetur.No21 May 12:37Edit
213quod reprehenderitIn ex fuga voluptas dolores accusamus architecto.No21 May 12:37Edit
469natus autemSed deleniti iste et eos magnam delectus in sequi.Yes10 Jun 12:37Edit
495qui ut inQuis ut eos a et.No21 Apr 12:37Edit
145asperioresSit consectetur dignissimos blanditiis velit aperiam est ratione reprehenderit.No05 Jun 12:37Edit
427quae assumendaConsequatur iure et odio nulla tenetur.No15 May 12:37Edit
218quaerat sequiDeserunt et rem ut.No03 Apr 12:37Edit
237vel esseDistinctio accusamus et dolores aliquam repudiandae omnis.No04 Jun 12:37Edit
139aliquid oditOccaecati veritatis asperiores vitae aut.No19 Apr 12:37Edit
271etNatus deserunt quibusdam rerum.Yes19 May 12:37Edit
99solutaOfficiis omnis esse est debitis laboriosam.No25 Mar 12:37Edit
265reprehenderit voluptasProvident explicabo exercitationem quia voluptates.No01 Apr 12:37Edit

Fork me on GitHub