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 Alle rijen tonen
85voluptatibus inventoreHarum aliquam amet et inventore.Yes12 Jun 12:37Edit
137molestiaeArchitecto praesentium ut dolorem illo facere rerum numquam provident.Yes12 Jun 12:37Edit
157rerumEum voluptatibus quis in.No12 Jun 12:37Edit
352autemUt provident voluptates dolor.No12 Jun 12:37Edit
87nostrumTempore ad qui velit nihil ipsam.No13 Jun 12:37Edit
277magni officia inciduntEveniet magnam alias mollitia sit facere in deserunt autem.No13 Jun 12:37Edit
283quamVoluptatem id dolore non.No13 Jun 12:37Edit
379vero repellatUt sed id deserunt.Yes13 Jun 12:37Edit
34illo voluptasEsse et fuga voluptate eveniet qui.No14 Jun 12:37Edit
156rationeFugiat facilis eligendi maiores facere maxime tempora magni.No14 Jun 12:37Edit
212quis veniamNam consequatur similique doloribus tempore tenetur recusandae ex.Yes14 Jun 12:37Edit
267quoId exercitationem laudantium nemo amet.No14 Jun 12:37Edit
315autemSapiente sit est laboriosam quo officiis ab.No14 Jun 12:37Edit
382vel nostrumMaiores officiis sequi aut at quia.No14 Jun 12:37Edit
45rerumRepellat et ut eos ea illo et dolorum voluptatem.No15 Jun 12:37Edit
67officia quo maioresAut aperiam aut sint voluptas voluptatibus ut cumque id.No15 Jun 12:37Edit
121dolore idDignissimos fugit amet nulla quis numquam sed explicabo.No15 Jun 12:37Edit
199ea consectetur velitConsectetur fuga adipisci ad quia alias qui.No15 Jun 12:37Edit
241blanditiis natusImpedit sit ea ut et.No15 Jun 12:37Edit
264magnam laboriosamTemporibus laborum sapiente cupiditate sed porro consequuntur.No15 Jun 12:37Edit

Fork me on GitHub