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 -%>
    
281-300 / 500 Alle rijen tonen
324natus dicta possimusEligendi et quis aut quasi voluptate tempore temporibus ut.No16 May 12:37Edit
487natus etVoluptatibus mollitia corporis est numquam eum.No14 May 12:37Edit
478necessitatibusQui omnis tempora velit.No10 May 12:37Edit
18necessitatibus commodiLabore dolor et cumque quos.No27 Mar 12:37Edit
57nequeNisi mollitia ipsam autem est voluptas consequatur expedita.No19 Mar 12:37Edit
112neque quiAut ipsa aut accusamus quia consequatur ea facilis.No05 Apr 12:37Edit
239nesciuntHarum quo vel maiores praesentium non sit sapiente fugiat.No30 May 12:37Edit
233nesciunt suscipit quisDicta vel atque occaecati quisquam qui est tempora.Yes14 Mar 12:37Edit
364nesciunt ullam nequeEt nulla reiciendis fugit odit nemo rem quo.No26 Mar 12:37Edit
195nihilVoluptate magnam autem iusto rerum ipsa distinctio praesentium odio.No04 Jun 12:37Edit
393nihilAut non incidunt omnis assumenda.Yes18 Apr 12:37Edit
152nihilReiciendis explicabo sit porro veritatis illum nemo asperiores est.No19 Mar 12:37Edit
125nihil eum minusAsperiores soluta ut qui.No29 Apr 12:37Edit
172nihil ipsamRatione repudiandae at odio et.No22 Apr 12:37Edit
311nihil maximeEst ducimus culpa aut aut.No20 Apr 12:37Edit
216nihil vitae eaNobis tenetur qui occaecati voluptas quibusdam.No22 Apr 12:37Edit
4nisi quiQuas assumenda eos molestiae recusandae eveniet sit sint.No18 Mar 12:37Edit
263nonFugit possimus ut aut.No24 Mar 12:37Edit
412nonPerferendis consequatur error doloremque non voluptas sed aspernatur animi.No17 Mar 12:37Edit
197non autemHarum eum labore ad.No25 May 12:37Edit

Fork me on GitHub