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 -%>
    
461-480 / 500 Alle rijen tonen
76totamDistinctio et pariatur non est consequatur enim.No31 Mar 12:37Edit
212quis veniamNam consequatur similique doloribus tempore tenetur recusandae ex.Yes14 Jun 12:37Edit
314facere adipisci doloresImpedit recusandae pariatur dolores asperiores et quibusdam.No16 May 12:37Edit
265reprehenderit voluptasProvident explicabo exercitationem quia voluptates.No01 Apr 12:37Edit
426accusantium eligendiDebitis dolore id eos tempora.No29 Apr 12:37Edit
64reiciendisQuaerat voluptatum nihil iure.No30 Mar 12:37Edit
477et corruptiLabore non ab accusamus culpa aliquam dicta eaque.No03 May 12:37Edit
278itaqueEveniet quam sint occaecati qui expedita asperiores.Yes25 Apr 12:37Edit
63accusamusPraesentium quod ipsum error odit.No15 Apr 12:37Edit
442ut voluptatemQuibusdam et veniam ut.No10 Jun 12:37Edit
443ullam laudantium commodiEaque tempora non quia sit quia perspiciatis mollitia.No18 May 12:37Edit
228reprehenderitDeleniti non necessitatibus voluptas.No19 Apr 12:37Edit
445delectusOptio aut tempora mollitia corporis dicta temporibus eum vitae.No13 May 12:37Edit
448tempore aliquam rationeQuam rerum tenetur aliquid.No23 Mar 12:37Edit
49laborumFacere perferendis sapiente atque.No30 Apr 12:37Edit
201voluptasEt ut autem at ex voluptatibus assumenda.No16 Mar 12:37Edit
455etRerum unde adipisci praesentium ut dolore ea quia debitis.No14 Apr 12:37Edit
456inventore voluptasQuis molestiae ipsa omnis blanditiis ut dolores.No31 May 12:37Edit
457asperiores qui nonIllum consequatur laboriosam iusto praesentium sed dolore.No15 May 12:37Edit
236consequatur quisquamMinus mollitia ab quia soluta provident aut tempora aut.No05 Jun 12:37Edit

Fork me on GitHub