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 -%>
    
81-100 / 500 show all
180cupiditate tenetur omnisRerum sed atque rem quos aliquid id.No17 Jun 12:37Edit
418cupiditate ut illumExpedita ut ut molestiae officia voluptatem.No27 May 12:37Edit
366debitis nihil quidemMolestiae est consequatur itaque est maiores vero.No06 May 12:37Edit
31debitis pariatur illoTemporibus velit id et porro dolor.Yes18 May 12:37Edit
445delectusOptio aut tempora mollitia corporis dicta temporibus eum vitae.No13 May 12:37Edit
189delectus utEt et qui qui dolorum quod voluptatem sequi.No27 May 12:37Edit
5dicta pariaturCorporis iure repellat fuga omnis alias iusto aut voluptatum.No19 Apr 12:37Edit
135dignissimos idId iure vero quas nobis et quibusdam.No11 Apr 12:37Edit
450distinctio aspernaturVel perspiciatis exercitationem dolorem ducimus.No18 Apr 12:37Edit
55dolorError odio possimus labore.No11 Jun 12:37Edit
40dolorSapiente voluptas aspernatur non nulla illo aperiam et.No10 May 12:37Edit
84doloreOdio laboriosam velit pariatur ea autem distinctio.No04 Apr 12:37Edit
409dolore etAut sequi veniam eius eveniet.No12 Mar 12:37Edit
121dolore idDignissimos fugit amet nulla quis numquam sed explicabo.No15 Jun 12:37Edit
116dolorem consecteturNemo voluptate quo cum natus ut dolorum maxime consequuntur.No17 May 12:37Edit
305dolorem harumAspernatur expedita accusantium quaerat fuga recusandae accusamus non.No19 Apr 12:37Edit
343dolorem sit molestiasEaque exercitationem aut dolorem amet.No18 Apr 12:37Edit
363doloresMagni aliquid aperiam non delectus.No30 Apr 12:37Edit
114dolores liberoId quis dolor natus.No08 Jun 12:37Edit
297dolores magnam eosAsperiores possimus modi sint et quia.No12 Mar 12:37Edit

Fork me on GitHub