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 -%>
    
341-360 / 500 show all
465totamQui adipisci aspernatur qui non.No23 Apr 12:37Edit
262eosQuia ea eos qui omnis odio et.No22 Apr 12:37Edit
470et nonQuia eaque consequatur minima ut pariatur.No19 Jun 12:37Edit
186velit dignissimosQuia et molestias quidem sit minus.No11 Apr 12:37Edit
400et voluptatibusQui aliquam et quia.No23 Apr 12:37Edit
496velit non pariaturQuia possimus rerum eum architecto.Yes07 Apr 12:37Edit
395quia nobis quidemQuia quis repellendus eos adipisci.No24 May 12:37Edit
322qui doloresQuia rem qui unde eum et tempora.No31 Mar 12:37Edit
351minusQuia rerum est porro quod animi veritatis libero molestiae.No02 May 12:37Edit
288consectetur dolores delectusQuia vel vitae dolorum iusto illo velit.No18 May 12:37Edit
193idQuia voluptas sit aut sed maiores accusantium soluta.No15 May 12:37Edit
442ut voluptatemQuibusdam et veniam ut.No10 Jun 12:37Edit
354sedQuibusdam voluptas ipsam blanditiis debitis.No13 Apr 12:37Edit
323doloribusQuidem deleniti qui rerum est.No15 Jun 12:37Edit
289quasiQui est mollitia minus tempore eaque perferendis non.No31 May 12:37Edit
144est errorQui facere accusantium sint iusto quod consectetur dolores.No15 Apr 12:37Edit
153facilis utQui omnis beatae enim.No15 Apr 12:37Edit
478necessitatibusQui omnis tempora velit.No10 May 12:37Edit
194quoQuis fugiat aperiam sapiente veniam provident odio inventore qui.No26 Mar 12:37Edit
498sedQui sint eos distinctio vel assumenda sed animi quae.Yes05 Apr 12:37Edit

Fork me on GitHub