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 Voir tous
271etNatus deserunt quibusdam rerum.Yes19 May 12:37Edit
269culpa assumendaOmnis voluptatem atque et mollitia a.No12 Mar 12:37Edit
265reprehenderit voluptasProvident explicabo exercitationem quia voluptates.No01 Apr 12:37Edit
261cumque voluptasQuod distinctio iusto quia quas voluptatem est.No05 Apr 12:37Edit
259suntEos recusandae ut provident voluptas consequatur enim.No18 May 12:37Edit
256saepeEarum facere omnis voluptatem dolor ad.No04 May 12:37Edit
252quasi etSunt atque in necessitatibus officia dolorum.No10 Apr 12:37Edit
250id culpa aliquidMagni possimus corrupti sed voluptatem earum harum ipsum.No04 Apr 12:37Edit
247eum temporeDignissimos cumque rem dolores voluptatem numquam omnis unde autem.No09 Jun 12:37Edit
246eos laborumDelectus assumenda sint praesentium est.No19 Apr 12:37Edit
245iure utDolores veniam quia sint est a.No01 Jun 12:37Edit
244autem sintEarum quibusdam rerum amet quae laudantium.Yes14 Apr 12:37Edit
241blanditiis natusImpedit sit ea ut et.No15 Jun 12:37Edit
238namDolor culpa laboriosam enim omnis ipsa.No10 Jun 12:37Edit
237vel esseDistinctio accusamus et dolores aliquam repudiandae omnis.No04 Jun 12:37Edit
234quidem corporisAut velit earum velit assumenda.No09 Jun 12:37Edit
229omnis commodiArchitecto qui voluptatum vel et.No08 Apr 12:37Edit
228reprehenderitDeleniti non necessitatibus voluptas.No19 Apr 12:37Edit
227et voluptatibusEt corporis voluptas quam harum praesentium.No09 Jun 12:37Edit
217facere providentMagnam est quis sunt.No11 Jun 12:37Edit

Fork me on GitHub