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 -%>
    
41-60 / 500 show all
42autEt eaque dignissimos magnam.No08 Apr 12:37Edit
352autemUt provident voluptates dolor.No12 Jun 12:37Edit
315autemSapiente sit est laboriosam quo officiis ab.No14 Jun 12:37Edit
104autemMinima consequatur explicabo deleniti iusto officiis debitis doloremque rerum.No06 Jun 12:37Edit
70autemSit ipsa aut qui quia voluptatem omnis.No25 Mar 12:37Edit
332autem etDolorem qui qui repudiandae eveniet mollitia est exercitationem rerum.No15 Apr 12:37Edit
100autem nonMinus autem provident ex culpa sit.No02 May 12:37Edit
301autem perspiciatisSit enim itaque in earum cumque est et.No06 Apr 12:37Edit
105autem quiaVelit voluptas impedit officia illo eveniet ullam.Yes09 Apr 12:37Edit
244autem sintEarum quibusdam rerum amet quae laudantium.Yes14 Apr 12:37Edit
391aut estVelit distinctio necessitatibus culpa debitis non eos molestiae rerum.No12 Mar 12:37Edit
336aut quis aspernaturAliquam fuga similique facilis accusamus reprehenderit.No24 Mar 12:37Edit
160aut voluptatesEarum odio voluptatem nulla.No20 Mar 12:37Edit
158aut voluptatibus autLaudantium quae beatae et architecto voluptatem libero et.No12 Apr 12:37Edit
318beataeQuaerat veniam architecto est.No13 Mar 12:37Edit
202beataeVel cupiditate quis autem.No08 May 12:37Edit
164beatae consecteturSimilique dolorem provident et accusantium aliquid inventore omnis.No07 Jun 12:37Edit
225beatae porroAut mollitia et ut.No22 Apr 12:37Edit
241blanditiis natusImpedit sit ea ut et.No15 Jun 12:37Edit
373commodiSit minima ab voluptas dolorem cumque.No13 Apr 12:37Edit

Fork me on GitHub