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 Alle rijen tonen
158aut voluptatibus autLaudantium quae beatae et architecto voluptatem libero et.No12 Apr 12:37Edit
171qui est etEt temporibus sed maiores.No09 Apr 12:37Edit
173etQuod eum nulla consequatur tempora cumque consectetur nam.No29 Mar 12:37Edit
179omnis et facilisEt est rem necessitatibus earum iste.No29 Mar 12:37Edit
187quodVitae voluptates voluptas et aliquam aperiam eos.No31 Mar 12:37Edit
188aliquid adipisciEaque maxime mollitia in vel.No21 May 12:37Edit
194quoQuis fugiat aperiam sapiente veniam provident odio inventore qui.No26 Mar 12:37Edit
205velAut corrupti facere omnis officia.No15 May 12:37Edit
210molestiaeCommodi soluta deleniti magni nisi error voluptas.No10 Jun 12:37Edit
232eos quam doloremEt aspernatur voluptatem qui commodi esse.No18 Jun 12:37Edit
235sunt ametHic similique sit cupiditate.No20 May 12:37Edit
245iure utDolores veniam quia sint est a.No01 Jun 12:37Edit
249sint itaqueNeque cum vero laborum voluptatem aliquam velit quaerat voluptatem.Yes16 Jun 12:37Edit
256saepeEarum facere omnis voluptatem dolor ad.No04 May 12:37Edit
270modi minusIllo voluptas eum dolorem accusantium deleniti aliquam.No04 May 12:37Edit
273veroMinima eum dicta odio a quod odit rerum.Yes11 May 12:37Edit
277magni officia inciduntEveniet magnam alias mollitia sit facere in deserunt autem.No13 Jun 12:37Edit
279et sitExpedita repudiandae accusantium necessitatibus aliquid quis aliquam.No01 Jun 12:37Edit
297dolores magnam eosAsperiores possimus modi sint et quia.No12 Mar 12:37Edit
302eligendi velVel iste ea at sapiente eligendi inventore laudantium quas.No24 Mar 12:37Edit

Fork me on GitHub