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 -%>
    
441-460 / 500 Voir tous
27eum velUllam tenetur culpa error fugit sunt.No15 Mar 12:37Edit
439namUnde eos dolore quis quo.No23 May 12:37Edit
468officiisUt a qui quod saepe unde excepturi.No07 Jun 12:37Edit
458quisUt corrupti consequatur iste.No03 May 12:37Edit
214eumUt dolor qui dolore.No25 Apr 12:37Edit
316at enim ullamUt minima dolor molestias ut.No12 Apr 12:37Edit
83enimUt molestias ducimus dignissimos.No14 Mar 12:37Edit
352autemUt provident voluptates dolor.No12 Jun 12:37Edit
353rerum nam eligendiUt qui omnis at ducimus id non perferendis qui.Yes08 Apr 12:37Edit
399rerum quaeUt quisquam molestiae at aut.No16 Apr 12:37Edit
380qui repellendus sintUt quo voluptates sint.No11 May 12:37Edit
379vero repellatUt sed id deserunt.Yes13 Jun 12:37Edit
446ut et sitUt voluptatem est facere quasi.No04 Apr 12:37Edit
202beataeVel cupiditate quis autem.No08 May 12:37Edit
302eligendi velVel iste ea at sapiente eligendi inventore laudantium quas.No24 Mar 12:37Edit
21et rerum laborumVelit consequatur quas sunt perspiciatis quae nihil.No19 Mar 12:37Edit
391aut estVelit distinctio necessitatibus culpa debitis non eos molestiae rerum.No12 Mar 12:37Edit
411iureVelit error et fugiat fuga provident debitis expedita.No21 Mar 12:37Edit
105autem quiaVelit voluptas impedit officia illo eveniet ullam.Yes09 Apr 12:37Edit
106laboriosam enimVel laborum similique est voluptatem dolor cupiditate.No18 Jun 12:37Edit

Fork me on GitHub