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 -%>
    
121-140 / 500 Alle rijen tonen
17itaque suscipit commodiEt ut eveniet deleniti voluptatem omnis ea magnam et.No30 Mar 12:37Edit
18necessitatibus commodiLabore dolor et cumque quos.No27 Mar 12:37Edit
37etIncidunt eum consequatur qui et quis.No09 May 12:37Edit
41estIpsum illo corrupti nesciunt facere.No10 Apr 12:37Edit
58atque etEst alias est non debitis omnis voluptatem.No28 May 12:37Edit
59alias liberoRepudiandae praesentium aut nobis saepe.No23 Mar 12:37Edit
60voluptas repellendusTempora suscipit quibusdam rerum expedita aut.No02 Jun 12:37Edit
65eosOccaecati atque assumenda qui deleniti.Yes21 Apr 12:37Edit
70autemSit ipsa aut qui quia voluptatem omnis.No25 Mar 12:37Edit
81ad quo dolorTempora culpa laborum et illum suscipit facilis earum et.No05 May 12:37Edit
86adipisciConsectetur optio rerum facilis explicabo enim consequatur delectus iste.No08 Apr 12:37Edit
97voluptatem facilis etIncidunt dolorem molestias deserunt repellat vero aut.No15 Mar 12:37Edit
106laboriosam enimVel laborum similique est voluptatem dolor cupiditate.No18 Jun 12:37Edit
109sit amet fugiatVoluptatem nam dolores numquam quisquam.No03 Apr 12:37Edit
110hicVoluptate quia quo sed.No11 May 12:37Edit
131iure autem ametOmnis tenetur dolores commodi consequatur nobis.No05 May 12:37Edit
141excepturiSimilique autem eos facere provident qui pariatur.No14 Apr 12:37Edit
170fugiatAutem quia deleniti veritatis facere laudantium.No20 Apr 12:37Edit
185aspernaturAutem minus et libero inventore.No11 Apr 12:37Edit
189delectus utEt et qui qui dolorum quod voluptatem sequi.No27 May 12:37Edit

Fork me on GitHub