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 -%>
    
341-360 / 500 Voir tous
427quae assumendaConsequatur iure et odio nulla tenetur.No15 May 12:37Edit
91quaeratFacere ullam veniam inventore ea.No08 Jun 12:37Edit
218quaerat sequiDeserunt et rem ut.No03 Apr 12:37Edit
283quamVoluptatem id dolore non.No13 Jun 12:37Edit
377quam qui quibusdamEa quia perferendis fuga dolore voluptatum vel vel.No24 Mar 12:37Edit
289quasiQui est mollitia minus tempore eaque perferendis non.No31 May 12:37Edit
252quasi etSunt atque in necessitatibus officia dolorum.No10 Apr 12:37Edit
268quasi minima magniConsequuntur aspernatur eos cumque facere.No21 May 12:37Edit
480quas sapiente rerumQuos aut dolor error nihil at placeat quia id.No25 Apr 12:37Edit
248quiMinus quia cumque est deleniti.Yes30 Mar 12:37Edit
132quiaNemo nostrum perspiciatis in iste neque omnis est.No17 Mar 12:37Edit
384quiaNihil voluptas unde voluptas nobis.No27 May 12:37Edit
484quiaMolestias ut reprehenderit ipsum quod corporis dolore debitis iste.No06 May 12:37Edit
61quia architectoRerum sit aliquid quia corrupti praesentium.No15 May 12:37Edit
339quia doloremqueTemporibus quia esse omnis recusandae et consectetur est consequatur.No29 May 12:37Edit
242quia doloremque perspiciatisExpedita perspiciatis quos dolor at in quae impedit doloremque.No26 May 12:37Edit
258quia fugiatQuae vero fuga omnis at possimus cupiditate ut molestiae.No09 Jun 12:37Edit
224quia illum natusIpsam alias necessitatibus quaerat.No19 Mar 12:37Edit
206quia ipsum maximeEum quia expedita quo quia.No12 Mar 12:37Edit
26quia mollitia delenitiFugit voluptatem recusandae soluta voluptatum consequuntur est voluptatem quas.No23 May 12:37Edit

Fork me on GitHub