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 -%>
    
141-160 / 500 Alle rijen tonen
163ipsa quoEt vel dolorum quae.No11 Apr 12:37Edit
185aspernaturAutem minus et libero inventore.No11 Apr 12:37Edit
186velit dignissimosQuia et molestias quidem sit minus.No11 Apr 12:37Edit
223laboriosam aut etEt possimus dicta hic sunt et itaque facilis.No11 Apr 12:37Edit
410et qui sintVoluptatem recusandae dicta cumque vitae.No11 Apr 12:37Edit
421reiciendis dolorum quodDoloremque alias quis reiciendis dicta ipsa libero doloribus rerum.Yes11 Apr 12:37Edit
497impedit quoQuod earum illum voluptatem.No11 Apr 12:37Edit
158aut voluptatibus autLaudantium quae beatae et architecto voluptatem libero et.No12 Apr 12:37Edit
204error earum quiAb labore rerum quisquam rerum enim magni.No12 Apr 12:37Edit
316at enim ullamUt minima dolor molestias ut.No12 Apr 12:37Edit
36placeatQuia aut eligendi aliquid.No13 Apr 12:37Edit
207sunt laborum cupiditateTempore laborum veniam non iure non minima.No13 Apr 12:37Edit
354sedQuibusdam voluptas ipsam blanditiis debitis.No13 Apr 12:37Edit
355optioEt sint et tempore quisquam.No13 Apr 12:37Edit
373commodiSit minima ab voluptas dolorem cumque.No13 Apr 12:37Edit
385et teneturDelectus consectetur vitae dicta eveniet.No13 Apr 12:37Edit
141excepturiSimilique autem eos facere provident qui pariatur.No14 Apr 12:37Edit
178molestias voluptas quiIn tempora quam expedita officiis quod.No14 Apr 12:37Edit
183iureFugiat sit unde quibusdam iste autem in.No14 Apr 12:37Edit
244autem sintEarum quibusdam rerum amet quae laudantium.Yes14 Apr 12:37Edit

Fork me on GitHub