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 -%>
    
241-260 / 500 Alle rijen tonen
241blanditiis natusImpedit sit ea ut et.No15 Jun 12:37Edit
242quia doloremque perspiciatisExpedita perspiciatis quos dolor at in quae impedit doloremque.No26 May 12:37Edit
243molestiae similiqueLabore et dolor architecto dolorum aut recusandae.No06 Apr 12:37Edit
244autem sintEarum quibusdam rerum amet quae laudantium.Yes14 Apr 12:37Edit
245iure utDolores veniam quia sint est a.No01 Jun 12:37Edit
246eos laborumDelectus assumenda sint praesentium est.No19 Apr 12:37Edit
247eum temporeDignissimos cumque rem dolores voluptatem numquam omnis unde autem.No09 Jun 12:37Edit
248quiMinus quia cumque est deleniti.Yes30 Mar 12:37Edit
249sint itaqueNeque cum vero laborum voluptatem aliquam velit quaerat voluptatem.Yes16 Jun 12:37Edit
250id culpa aliquidMagni possimus corrupti sed voluptatem earum harum ipsum.No04 Apr 12:37Edit
251odit praesentiumAt saepe ipsa officiis ut minus est et nemo.No30 May 12:37Edit
252quasi etSunt atque in necessitatibus officia dolorum.No10 Apr 12:37Edit
253quosAut fuga qui excepturi ut tempora dolor voluptatem.Yes26 May 12:37Edit
254ex estIpsa enim provident quia.Yes10 Jun 12:37Edit
255qui suscipitRerum quia itaque amet eum veniam aut ad.No24 Apr 12:37Edit
256saepeEarum facere omnis voluptatem dolor ad.No04 May 12:37Edit
257et nihilVoluptatibus sit et saepe eum harum et.No12 Mar 12:37Edit
258quia fugiatQuae vero fuga omnis at possimus cupiditate ut molestiae.No09 Jun 12:37Edit
259suntEos recusandae ut provident voluptas consequatur enim.No18 May 12:37Edit
260voluptates dolorem officiaSint quidem vel asperiores.No19 May 12:37Edit

Fork me on GitHub