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 -%>
    
81-100 / 500 Alle rijen tonen
76totamDistinctio et pariatur non est consequatur enim.No31 Mar 12:37Edit
349et similiqueDistinctio sunt ut doloribus adipisci rerum in.No10 Apr 12:37Edit
238namDolor culpa laboriosam enim omnis ipsa.No10 Jun 12:37Edit
383omnis vel delectusDolorem amet et et in iusto autem occaecati.No16 May 12:37Edit
421reiciendis dolorum quodDoloremque alias quis reiciendis dicta ipsa libero doloribus rerum.Yes11 Apr 12:37Edit
332autem etDolorem qui qui repudiandae eveniet mollitia est exercitationem rerum.No15 Apr 12:37Edit
33voluptatemDolorem saepe et aspernatur.No04 May 12:37Edit
80corrupti officiaDolore odit consequatur dolores quia deleniti veniam.No12 Mar 12:37Edit
136exercitationem distinctio quiDolores dolor amet quis a facilis asperiores.No14 Mar 12:37Edit
133optioDolores officia in et quam aliquid repellat rerum.No27 Mar 12:37Edit
123suscipit sunt deseruntDolores quasi minus fugiat reprehenderit et consequatur.No27 May 12:37Edit
176vitae ducimus consequunturDolores tenetur consequatur nihil minima id delectus consequatur et.No25 Apr 12:37Edit
245iure utDolores veniam quia sint est a.No01 Jun 12:37Edit
118hicDolores voluptatem nobis repudiandae consequatur fugiat autem voluptas.No25 Mar 12:37Edit
192eumDoloribus sequi facere aut dolor sed quae quos.No19 Jun 12:37Edit
168adDolorum id sint assumenda quos consectetur aut eveniet.No25 Apr 12:37Edit
422harum enimDolorum illum enim eum numquam aut nihil et perferendis.No25 Apr 12:37Edit
281velitDolorum quaerat asperiores itaque quibusdam libero aspernatur sed eius.No20 Mar 12:37Edit
198eaDolorum voluptates quae veniam porro repudiandae nam eos qui.No24 Apr 12:37Edit
162quia nihil laboreDolor vitae perspiciatis error occaecati accusamus aperiam.No19 Apr 12:37Edit

Fork me on GitHub