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 -%>
    
141-160 / 500 Alle rijen tonen
344etProvident saepe expedita ipsum ut totam.No21 Apr 12:37Edit
271etNatus deserunt quibusdam rerum.Yes19 May 12:37Edit
173etQuod eum nulla consequatur tempora cumque consectetur nam.No29 Mar 12:37Edit
37etIncidunt eum consequatur qui et quis.No09 May 12:37Edit
29etEst nesciunt accusantium repudiandae est officia ipsa.No01 May 12:37Edit
22etReiciendis non officia aut omnis quia minima.No19 May 12:37Edit
477et corruptiLabore non ab accusamus culpa aliquam dicta eaque.No03 May 12:37Edit
211et dictaExpedita tempore numquam unde ut quaerat iure est.No22 Apr 12:37Edit
257et nihilVoluptatibus sit et saepe eum harum et.No12 Mar 12:37Edit
470et nonQuia eaque consequatur minima ut pariatur.No19 Jun 12:37Edit
403et praesentium temporeAccusamus omnis odit in cumque soluta aliquam.No01 May 12:37Edit
143et qui etQuae enim voluptas asperiores soluta.No02 Apr 12:37Edit
410et qui sintVoluptatem recusandae dicta cumque vitae.No11 Apr 12:37Edit
350et quoRerum rem quos officiis molestias earum pariatur.Yes06 Apr 12:37Edit
459et rerumExplicabo totam asperiores cupiditate ea dolore ipsam.No19 Jun 12:37Edit
21et rerum laborumVelit consequatur quas sunt perspiciatis quae nihil.No19 Mar 12:37Edit
349et similiqueDistinctio sunt ut doloribus adipisci rerum in.No10 Apr 12:37Edit
279et sitExpedita repudiandae accusantium necessitatibus aliquid quis aliquam.No01 Jun 12:37Edit
385et teneturDelectus consectetur vitae dicta eveniet.No13 Apr 12:37Edit
319et voluptatemDicta vel deleniti quasi enim laudantium repudiandae est sint.No16 Mar 12:37Edit

Fork me on GitHub