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 -%>
    
481-500 / 500 Sýna allt
81ad quo dolorTempora culpa laborum et illum suscipit facilis earum et.No05 May 12:37Edit
78exercitationem sapienteQuasi numquam aut magnam expedita dolor repudiandae officiis.No07 Apr 12:37Edit
313impeditOptio repellat sapiente est excepturi.No29 May 12:37Edit
314facere adipisci doloresImpedit recusandae pariatur dolores asperiores et quibusdam.No16 May 12:37Edit
5dicta pariaturCorporis iure repellat fuga omnis alias iusto aut voluptatum.No19 Apr 12:37Edit
316at enim ullamUt minima dolor molestias ut.No12 Apr 12:37Edit
435eos deseruntQuia amet occaecati et non sed repudiandae voluptatibus id.No20 Apr 12:37Edit
318beataeQuaerat veniam architecto est.No13 Mar 12:37Edit
160aut voluptatesEarum odio voluptatem nulla.No20 Mar 12:37Edit
154nostrumQuia cupiditate facere itaque doloribus sit ab expedita vero.No06 Jun 12:37Edit
321quis est autemAmet veniam quia molestias eum modi impedit rerum ad.No02 May 12:37Edit
475rerum perspiciatis eumSoluta non et temporibus.No20 Apr 12:37Edit
323doloribusQuidem deleniti qui rerum est.No15 Jun 12:37Edit
324natus dicta possimusEligendi et quis aut quasi voluptate tempore temporibus ut.No16 May 12:37Edit
77sed quibusdam isteQuis non ducimus quia perferendis.No03 Jun 12:37Edit
151ullam labore architectoFugit ut deserunt quia dolorem ut.No24 Mar 12:37Edit
327inventoreSaepe quos molestiae id non odio voluptate.No08 Apr 12:37Edit
139aliquid oditOccaecati veritatis asperiores vitae aut.No19 Apr 12:37Edit
75velit non magniTotam dolor est sint et sed.No07 May 12:37Edit
330voluptasSit qui aut nesciunt ut excepturi debitis id.No21 Apr 12:37Edit

Fork me on GitHub