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 -%>
    
401-420 / 500 Alle rijen tonen
471illo ut evenietSed esse et sit qui iste odit sint ex.No01 Apr 12:37Edit
226ex aperiamSed iusto quisquam nostrum.No08 May 12:37Edit
177ex perferendis velitSed qui sunt ut quod ex.No18 Mar 12:37Edit
147adipisci ut asperioresSed sed ullam blanditiis aut consequatur mollitia ipsam et.No29 Mar 12:37Edit
447animi accusantium utSequi dolorem distinctio sit doloremque et corporis voluptatem alias.No06 Apr 12:37Edit
141excepturiSimilique autem eos facere provident qui pariatur.No14 Apr 12:37Edit
164beatae consecteturSimilique dolorem provident et accusantium aliquid inventore omnis.No07 Jun 12:37Edit
89provident consequatur remSint at soluta earum.No30 Mar 12:37Edit
260voluptates dolorem officiaSint quidem vel asperiores.No19 May 12:37Edit
340est vitaeSint sit quia minima nostrum ut neque.No17 Jun 12:37Edit
296cupiditate in minimaSit aspernatur tempore id.Yes02 May 12:37Edit
145asperioresSit consectetur dignissimos blanditiis velit aperiam est ratione reprehenderit.No05 Jun 12:37Edit
416ipsamSit dolore accusantium maxime.Yes28 Apr 12:37Edit
301autem perspiciatisSit enim itaque in earum cumque est et.No06 Apr 12:37Edit
70autemSit ipsa aut qui quia voluptatem omnis.No25 Mar 12:37Edit
373commodiSit minima ab voluptas dolorem cumque.No13 Apr 12:37Edit
330voluptasSit qui aut nesciunt ut excepturi debitis id.No21 Apr 12:37Edit
433ut facereSit sapiente ducimus earum quia.No15 May 12:37Edit
406sequi beataeSit velit consequuntur minus possimus.No26 Apr 12:37Edit
475rerum perspiciatis eumSoluta non et temporibus.No20 Apr 12:37Edit

Fork me on GitHub