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 -%>
    
101-120 / 500 show all
317nulla perspiciatis sapienteDolor voluptatibus aut ipsa ad ut.No07 Jun 12:37Edit
454similique enim odioEa cupiditate sit ex aut laudantium voluptatem.No14 Mar 12:37Edit
304voluptatibus minimaEa exercitationem molestiae magni corrupti quis aperiam et repellat.No18 Apr 12:37Edit
298iusto quae ipsamEa nihil vel ea.No10 May 12:37Edit
140mollitiaEa pariatur eveniet omnis quae recusandae consectetur.No21 May 12:37Edit
276sedEa provident inventore minima quis.No26 Apr 12:37Edit
343dolorem sit molestiasEaque exercitationem aut dolorem amet.No18 Apr 12:37Edit
188aliquid adipisciEaque maxime mollitia in vel.No21 May 12:37Edit
443ullam laudantium commodiEaque tempora non quia sit quia perspiciatis mollitia.No18 May 12:37Edit
377quam qui quibusdamEa quia perferendis fuga dolore voluptatum vel vel.No24 Mar 12:37Edit
256saepeEarum facere omnis voluptatem dolor ad.No04 May 12:37Edit
160aut voluptatesEarum odio voluptatem nulla.No20 Mar 12:37Edit
244autem sintEarum quibusdam rerum amet quae laudantium.Yes14 Apr 12:37Edit
467in error praesentiumEarum temporibus quae laudantium.No12 May 12:37Edit
425nulla quoEius non asperiores adipisci non quo aspernatur.No24 Mar 12:37Edit
324natus dicta possimusEligendi et quis aut quasi voluptate tempore temporibus ut.No16 May 12:37Edit
346adipisci at nesciuntEligendi facilis ut consequatur.No18 Jun 12:37Edit
371id officiis doloremEnim earum cupiditate suscipit libero.No14 May 12:37Edit
485ut teneturEos corporis voluptate ex sed totam.No10 Jun 12:37Edit
337estEos dolores ipsum ipsam mollitia.No21 Apr 12:37Edit

Fork me on GitHub