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
91quaeratFacere ullam veniam inventore ea.No08 Jun 12:37Edit
90commodi et quisConsequatur soluta eligendi et consequatur.No27 Apr 12:37Edit
88culpaOccaecati aut eum vero quasi dolorem.No25 May 12:37Edit
87nostrumTempore ad qui velit nihil ipsam.No13 Jun 12:37Edit
83enimUt molestias ducimus dignissimos.No14 Mar 12:37Edit
82utEt debitis enim repellat qui voluptatem a nam nisi.No04 Jun 12:37Edit
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
77sed quibusdam isteQuis non ducimus quia perferendis.No03 Jun 12:37Edit
75velit non magniTotam dolor est sint et sed.No07 May 12:37Edit
69similique placeat ipsaAlias ratione autem ut impedit non nihil itaque eaque.No08 May 12:37Edit
68exercitationem delectusSapiente ipsa dolorem aut sed cumque in esse.No12 May 12:37Edit
62eum velit saepeVoluptas voluptas nesciunt in eos eum inventore.No15 Mar 12:37Edit
61quia architectoRerum sit aliquid quia corrupti praesentium.No15 May 12:37Edit
58atque etEst alias est non debitis omnis voluptatem.No28 May 12:37Edit
57nequeNisi mollitia ipsam autem est voluptas consequatur expedita.No19 Mar 12:37Edit
51harum qui possimusNemo odio id ut quam praesentium esse.No26 Apr 12:37Edit
48qui inciduntDignissimos harum ut ea veritatis ut.No04 Apr 12:37Edit
45rerumRepellat et ut eos ea illo et dolorum voluptatem.No15 Jun 12:37Edit
41estIpsum illo corrupti nesciunt facere.No10 Apr 12:37Edit

Fork me on GitHub