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 -%>
    
401-420 / 500 Alle rijen tonen
31debitis pariatur illoTemporibus velit id et porro dolor.Yes18 May 12:37Edit
426accusantium eligendiDebitis dolore id eos tempora.No29 Apr 12:37Edit
108maximeItaque nisi fugiat et molestiae dolorem voluptas.No21 May 12:37Edit
341est cumVero dolore iusto ducimus ea illum dicta consequuntur.No17 May 12:37Edit
314facere adipisci doloresImpedit recusandae pariatur dolores asperiores et quibusdam.No16 May 12:37Edit
122omnisNecessitatibus quam in omnis.No25 Mar 12:37Edit
385et teneturDelectus consectetur vitae dicta eveniet.No13 Apr 12:37Edit
76totamDistinctio et pariatur non est consequatur enim.No31 Mar 12:37Edit
496velit non pariaturQuia possimus rerum eum architecto.Yes07 Apr 12:37Edit
438undePlaceat occaecati sunt at dolor quos aspernatur rerum voluptatem.No26 Apr 12:37Edit
277magni officia inciduntEveniet magnam alias mollitia sit facere in deserunt autem.No13 Jun 12:37Edit
116dolorem consecteturNemo voluptate quo cum natus ut dolorum maxime consequuntur.No17 May 12:37Edit
56sitVoluptate enim perspiciatis nihil nisi necessitatibus quo dignissimos.No11 May 12:37Edit
106laboriosam enimVel laborum similique est voluptatem dolor cupiditate.No18 Jun 12:37Edit
163ipsa quoEt vel dolorum quae.No11 Apr 12:37Edit
358quibusdam consequunturAut animi debitis dicta voluptate itaque perferendis praesentium.No31 Mar 12:37Edit
459et rerumExplicabo totam asperiores cupiditate ea dolore ipsam.No19 Jun 12:37Edit
434voluptas quisquamRerum quaerat eos numquam.No20 Apr 12:37Edit
75velit non magniTotam dolor est sint et sed.No07 May 12:37Edit
63accusamusPraesentium quod ipsum error odit.No15 Apr 12:37Edit

Fork me on GitHub