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 -%>
    
321-340 / 500 Alle rijen tonen
179omnis et facilisEt est rem necessitatibus earum iste.No29 Mar 12:37Edit
383omnis vel delectusDolorem amet et et in iusto autem occaecati.No16 May 12:37Edit
306omnis voluptatem abProvident sapiente odio distinctio et harum vel.No13 May 12:37Edit
133optioDolores officia in et quam aliquid repellat rerum.No27 Mar 12:37Edit
355optioEt sint et tempore quisquam.No13 Apr 12:37Edit
308optio idVero non non saepe.No17 Jun 12:37Edit
357optio provident quiImpedit rerum rerum dolorem aliquid occaecati eos nam eligendi.No21 Apr 12:37Edit
325perferendis pariaturEst voluptas explicabo id consequatur autem et voluptatum nobis.No06 May 12:37Edit
155perferendis utEt assumenda repellendus nemo tempore non ea neque qui.No10 May 12:37Edit
472perspiciatisNihil qui dolore dignissimos dicta.No26 Mar 12:37Edit
36placeatQuia aut eligendi aliquid.No13 Apr 12:37Edit
359placeat molestiae officiisReiciendis soluta quo voluptas quod.No20 Mar 12:37Edit
148porro ducimus voluptatibusRerum sint et minima.No18 Mar 12:37Edit
474possimusAut quia quia a et assumenda voluptas.No23 Mar 12:37Edit
372possimus est maximeFugit et quo magnam soluta.No09 May 12:37Edit
39praesentium et idExpedita laborum incidunt natus.No08 May 12:37Edit
89provident consequatur remSint at soluta earum.No30 Mar 12:37Edit
462provident doloremque laudantiumVoluptas nihil enim placeat.No14 Mar 12:37Edit
417provident eumEos temporibus animi voluptate quia a aut vel.No26 May 12:37Edit
479provident exMolestias animi adipisci sed qui sit ducimus ut et.No02 May 12:37Edit

Fork me on GitHub