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 show all
227et voluptatibusEt corporis voluptas quam harum praesentium.No09 Jun 12:37Edit
364nesciunt ullam nequeEt nulla reiciendis fugit odit nemo rem quo.No26 Mar 12:37Edit
485ut teneturEos corporis voluptate ex sed totam.No10 Jun 12:37Edit
247eum temporeDignissimos cumque rem dolores voluptatem numquam omnis unde autem.No09 Jun 12:37Edit
190recusandae nisi doloribusPerspiciatis rerum nihil ea ipsum.No30 Mar 12:37Edit
228reprehenderitDeleniti non necessitatibus voluptas.No19 Apr 12:37Edit
200minusImpedit est velit veniam architecto.No21 May 12:37Edit
350et quoRerum rem quos officiis molestias earum pariatur.Yes06 Apr 12:37Edit
346adipisci at nesciuntEligendi facilis ut consequatur.No18 Jun 12:37Edit
225beatae porroAut mollitia et ut.No22 Apr 12:37Edit
83enimUt molestias ducimus dignissimos.No14 Mar 12:37Edit
423magni eosTempore sunt voluptatum officia sapiente dolorem.No13 May 12:37Edit
267quoId exercitationem laudantium nemo amet.No14 Jun 12:37Edit
447animi accusantium utSequi dolorem distinctio sit doloremque et corporis voluptatem alias.No06 Apr 12:37Edit
129voluptates minima molestiaeMolestias enim voluptatibus voluptatem aut.No03 May 12:37Edit
38minima doloribus sedEst ipsum aut quam libero dolorem praesentium ut repellendus.No08 May 12:37Edit
323doloribusQuidem deleniti qui rerum est.No15 Jun 12:37Edit
231quia quisCupiditate error facilis qui nobis modi hic.Yes21 Mar 12:37Edit
156rationeFugiat facilis eligendi maiores facere maxime tempora magni.No14 Jun 12:37Edit
340est vitaeSint sit quia minima nostrum ut neque.No17 Jun 12:37Edit

Fork me on GitHub