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 -%>
    
421-440 / 500 Alle rijen tonen
192eumDoloribus sequi facere aut dolor sed quae quos.No19 Jun 12:37Edit
32voluptatem ipsam liberoBlanditiis omnis enim voluptas fugit molestiae.No07 Jun 12:37Edit
266estEum quam et quia laudantium.No06 Jun 12:37Edit
317nulla perspiciatis sapienteDolor voluptatibus aut ipsa ad ut.No07 Jun 12:37Edit
398dolores sitEt quae alias vitae sint autem eaque.No29 Mar 12:37Edit
93autId vero doloremque animi unde.No04 Apr 12:37Edit
46facereEst nesciunt molestiae labore ut.Yes26 Apr 12:37Edit
212quis veniamNam consequatur similique doloribus tempore tenetur recusandae ex.Yes14 Jun 12:37Edit
284illo explicaboVel quibusdam quia repellendus eligendi at.No28 Mar 12:37Edit
304voluptatibus minimaEa exercitationem molestiae magni corrupti quis aperiam et repellat.No18 Apr 12:37Edit
376assumendaBlanditiis tempora qui ut ex.No22 May 12:37Edit
486enim harum minimaEum dolore ut natus.No18 Apr 12:37Edit
235sunt ametHic similique sit cupiditate.No20 May 12:37Edit
334sitVoluptatem consequatur sunt facilis debitis quia velit.No03 Apr 12:37Edit
49laborumFacere perferendis sapiente atque.No30 Apr 12:37Edit
80corrupti officiaDolore odit consequatur dolores quia deleniti veniam.No12 Mar 12:37Edit
255qui suscipitRerum quia itaque amet eum veniam aut ad.No24 Apr 12:37Edit
68exercitationem delectusSapiente ipsa dolorem aut sed cumque in esse.No12 May 12:37Edit
436accusantiumCorrupti qui mollitia temporibus.No05 Apr 12:37Edit
133optioDolores officia in et quam aliquid repellat rerum.No27 Mar 12:37Edit

Fork me on GitHub