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 -%>
    
21-40 / 500 Voir tous
98aperiam rerumRerum quaerat eligendi voluptatem.Yes31 May 12:37Edit
309architecto esse autNisi quam et amet dolorem in assumenda.No25 May 12:37Edit
145asperioresSit consectetur dignissimos blanditiis velit aperiam est ratione reprehenderit.No05 Jun 12:37Edit
457asperiores qui nonIllum consequatur laboriosam iusto praesentium sed dolore.No15 May 12:37Edit
444asperiores quisIure est soluta deserunt sunt.Yes09 Apr 12:37Edit
185aspernaturAutem minus et libero inventore.No11 Apr 12:37Edit
388aspernatur dolores velIn velit quis optio exercitationem aspernatur et pariatur.No26 May 12:37Edit
20aspernatur eligendi adipisciMaiores perspiciatis tempore et aut sapiente eaque.No30 May 12:37Edit
11aspernatur estVoluptatem error inventore officia rem nemo qui.Yes24 Mar 12:37Edit
376assumendaBlanditiis tempora qui ut ex.No22 May 12:37Edit
437atVoluptatem rerum eos illo voluptatem labore autem consectetur consequatur.No03 Jun 12:37Edit
402atReiciendis ut reprehenderit occaecati quia voluptatum error debitis.No01 Jun 12:37Edit
71atRatione distinctio eligendi quaerat.No28 Apr 12:37Edit
404at aliquam corruptiVitae ut excepturi earum eum officia quidem repellat perspiciatis.No23 May 12:37Edit
396at consequatur quaeratNostrum enim iusto architecto numquam.No29 Mar 12:37Edit
316at enim ullamUt minima dolor molestias ut.No12 Apr 12:37Edit
58atque etEst alias est non debitis omnis voluptatem.No28 May 12:37Edit
466autIllum corporis occaecati quia quo aut ratione voluptatem.No19 Mar 12:37Edit
161autCommodi delectus eaque quia occaecati molestiae voluptate ut qui.No19 Jun 12:37Edit
93autId vero doloremque animi unde.No04 Apr 12:37Edit

Fork me on GitHub