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 -%>
    
481-500 / 500 Alle rijen tonen
62eum velit saepeVoluptas voluptas nesciunt in eos eum inventore.No15 Mar 12:37Edit
306omnis voluptatem abProvident sapiente odio distinctio et harum vel.No13 May 12:37Edit
405magni excepturiNon inventore non placeat incidunt cum.No31 May 12:37Edit
88culpaOccaecati aut eum vero quasi dolorem.No25 May 12:37Edit
196laudantiumRecusandae modi sed hic doloribus vel.No01 May 12:37Edit
403et praesentium temporeAccusamus omnis odit in cumque soluta aliquam.No01 May 12:37Edit
2ut sintAssumenda ut in commodi nihil ratione odio voluptatibus ea.No09 Apr 12:37Edit
391aut estVelit distinctio necessitatibus culpa debitis non eos molestiae rerum.No12 Mar 12:37Edit
250id culpa aliquidMagni possimus corrupti sed voluptatem earum harum ipsum.No04 Apr 12:37Edit
481etEveniet repellendus necessitatibus nam neque.No05 Jun 12:37Edit
365eligendi delenitiNemo rerum aut non eos dolore in et ea.No16 Mar 12:37Edit
418cupiditate ut illumExpedita ut ut molestiae officia voluptatem.No27 May 12:37Edit
310quis modiFacere quia molestiae eos.No28 Mar 12:37Edit
479provident exMolestias animi adipisci sed qui sit ducimus ut et.No02 May 12:37Edit
96impedit explicabo voluptatemHic eveniet pariatur non nostrum.No02 Jun 12:37Edit
443ullam laudantium commodiEaque tempora non quia sit quia perspiciatis mollitia.No18 May 12:37Edit
248quiMinus quia cumque est deleniti.Yes30 Mar 12:37Edit
205velAut corrupti facere omnis officia.No15 May 12:37Edit
6molestiae autemExplicabo aut ratione omnis voluptatem officia itaque dicta aut.Yes16 May 12:37Edit
15est ut autVero distinctio voluptatem veritatis.No17 Apr 12:37Edit

Fork me on GitHub