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 -%>
    
381-400 / 500 Alle rijen tonen
126qui voluptatum atqueVeniam ut eaque commodi sint esse.No06 Apr 12:37Edit
267quoId exercitationem laudantium nemo amet.No14 Jun 12:37Edit
194quoQuis fugiat aperiam sapiente veniam provident odio inventore qui.No26 Mar 12:37Edit
414quo architecto nonLaudantium iusto dolor facere vero provident sunt.Yes19 May 12:37Edit
320quo corrupti autSunt voluptatem corrupti est molestias id porro.No29 Apr 12:37Edit
187quodVitae voluptates voluptas et aliquam aperiam eos.No31 Mar 12:37Edit
213quod reprehenderitIn ex fuga voluptas dolores accusamus architecto.No21 May 12:37Edit
119quo est aliquidFugiat reprehenderit est quia ducimus voluptatem maiores tempore id.No19 May 12:37Edit
253quosAut fuga qui excepturi ut tempora dolor voluptatem.Yes26 May 12:37Edit
156rationeFugiat facilis eligendi maiores facere maxime tempora magni.No14 Jun 12:37Edit
190recusandae nisi doloribusPerspiciatis rerum nihil ea ipsum.No30 Mar 12:37Edit
64reiciendisQuaerat voluptatum nihil iure.No30 Mar 12:37Edit
421reiciendis dolorum quodDoloremque alias quis reiciendis dicta ipsa libero doloribus rerum.Yes11 Apr 12:37Edit
420rem nequeExpedita voluptatibus commodi dignissimos sed voluptatum modi voluptas.No14 Apr 12:37Edit
14repellat consequatur velitError autem et deleniti nihil maxime voluptatem eius eveniet.No06 May 12:37Edit
312repellendus perferendis vitaePariatur officia maxime libero ut vel dolor delectus.No17 May 12:37Edit
228reprehenderitDeleniti non necessitatibus voluptas.No19 Apr 12:37Edit
369reprehenderit rerumRepudiandae assumenda reprehenderit rerum voluptatibus sapiente.No15 Jun 12:37Edit
265reprehenderit voluptasProvident explicabo exercitationem quia voluptates.No01 Apr 12:37Edit
45rerumRepellat et ut eos ea illo et dolorum voluptatem.No15 Jun 12:37Edit

Fork me on GitHub