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 -%>
    
361-380 / 500 Sýna allt
359placeat molestiae officiisReiciendis soluta quo voluptas quod.No20 Mar 12:37Edit
371id officiis doloremEnim earum cupiditate suscipit libero.No14 May 12:37Edit
372possimus est maximeFugit et quo magnam soluta.No09 May 12:37Edit
128voluptasEst cum porro et et.No05 May 12:37Edit
124earumReprehenderit nulla assumenda pariatur enim.No08 Jun 12:37Edit
7ut veniamMolestiae qui qui quo occaecati.No10 May 12:37Edit
115sit et estUllam dolorum dolorem placeat doloribus aut ea consequatur.No16 Mar 12:37Edit
388aspernatur dolores velIn velit quis optio exercitationem aspernatur et pariatur.No26 May 12:37Edit
112neque quiAut ipsa aut accusamus quia consequatur ea facilis.No05 Apr 12:37Edit
88culpaOccaecati aut eum vero quasi dolorem.No25 May 12:37Edit
409dolore etAut sequi veniam eius eveniet.No12 Mar 12:37Edit
74molestiaeAd dolores occaecati fuga ratione praesentium quo.No22 May 12:37Edit
414quo architecto nonLaudantium iusto dolor facere vero provident sunt.Yes19 May 12:37Edit
73iure architectoVoluptatum aperiam ad dolore aut fugit.No05 Apr 12:37Edit
420rem nequeExpedita voluptatibus commodi dignissimos sed voluptatum modi voluptas.No14 Apr 12:37Edit
5dicta pariaturCorporis iure repellat fuga omnis alias iusto aut voluptatum.No19 Apr 12:37Edit
425nulla quoEius non asperiores adipisci non quo aspernatur.No24 Mar 12:37Edit
68exercitationem delectusSapiente ipsa dolorem aut sed cumque in esse.No12 May 12:37Edit
66vitae at autemNihil quae dolores quia ut non.No06 May 12:37Edit
57nequeNisi mollitia ipsam autem est voluptas consequatur expedita.No19 Mar 12:37Edit

Fork me on GitHub