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
    
  • <%= 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 -%>
    
  • .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'
21-40 / 500 Alle rijen tonen
156rationeFugiat facilis eligendi maiores facere maxime tempora magni.No14 Jun 12:37Edit
214eumUt dolor qui dolore.No25 Apr 12:37Edit
424non autem solutaConsectetur omnis excepturi cum vitae.No01 Jun 12:37Edit
425nulla quoEius non asperiores adipisci non quo aspernatur.No24 Mar 12:37Edit
471illo ut evenietSed esse et sit qui iste odit sint ex.No01 Apr 12:37Edit
130esse rationeAliquid dolore aut magnam voluptatum ad.No08 Apr 12:37Edit
295itaque velitVoluptatem rerum non expedita illum et quod.No30 Apr 12:37Edit
319et voluptatemDicta vel deleniti quasi enim laudantium repudiandae est sint.No16 Mar 12:37Edit
3aliquam repudiandaeConsequatur iste similique dolorum ducimus ut.No21 Mar 12:37Edit
26quia mollitia delenitiFugit voluptatem recusandae soluta voluptatum consequuntur est voluptatem quas.No23 May 12:37Edit
145asperioresSit consectetur dignissimos blanditiis velit aperiam est ratione reprehenderit.No05 Jun 12:37Edit
159ut maioresRerum qui esse aliquid repellat eveniet nemo.No09 May 12:37Edit
290voluptasIste aut occaecati quo voluptates facere consequatur.No02 Jun 12:37Edit
14repellat consequatur velitError autem et deleniti nihil maxime voluptatem eius eveniet.No06 May 12:37Edit
82utEt debitis enim repellat qui voluptatem a nam nisi.No04 Jun 12:37Edit
88culpaOccaecati aut eum vero quasi dolorem.No25 May 12:37Edit
211et dictaExpedita tempore numquam unde ut quaerat iure est.No22 Apr 12:37Edit
261cumque voluptasQuod distinctio iusto quia quas voluptatem est.No05 Apr 12:37Edit
265reprehenderit voluptasProvident explicabo exercitationem quia voluptates.No01 Apr 12:37Edit
289quasiQui est mollitia minus tempore eaque perferendis non.No31 May 12:37Edit

Fork me on GitHub