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 -%>
    
421-440 / 500 show all
410et qui sintVoluptatem recusandae dicta cumque vitae.No11 Apr 12:37Edit
411iureVelit error et fugiat fuga provident debitis expedita.No21 Mar 12:37Edit
412nonPerferendis consequatur error doloremque non voluptas sed aspernatur animi.No17 Mar 12:37Edit
413voluptateAnimi esse amet nihil ad nobis voluptatum.No25 Mar 12:37Edit
415voluptatemAccusantium mollitia dolorem nesciunt ipsa libero dolor.No17 Apr 12:37Edit
417provident eumEos temporibus animi voluptate quia a aut vel.No26 May 12:37Edit
418cupiditate ut illumExpedita ut ut molestiae officia voluptatem.No27 May 12:37Edit
420rem nequeExpedita voluptatibus commodi dignissimos sed voluptatum modi voluptas.No14 Apr 12:37Edit
422harum enimDolorum illum enim eum numquam aut nihil et perferendis.No25 Apr 12:37Edit
423magni eosTempore sunt voluptatum officia sapiente dolorem.No13 May 12:37Edit
424non autem solutaConsectetur omnis excepturi cum vitae.No01 Jun 12:37Edit
425nulla quoEius non asperiores adipisci non quo aspernatur.No24 Mar 12:37Edit
426accusantium eligendiDebitis dolore id eos tempora.No29 Apr 12:37Edit
427quae assumendaConsequatur iure et odio nulla tenetur.No15 May 12:37Edit
428commodi omnis temporeEsse sint deleniti a rerum est praesentium unde.No18 Mar 12:37Edit
429ipsamAccusamus a vel suscipit facere officia doloribus.No30 Apr 12:37Edit
430enim itaqueEt consectetur et eos ut.No11 May 12:37Edit
431vitae repudiandaeAliquid nihil aliquam architecto eos delectus placeat.No30 May 12:37Edit
432magni temporeOfficiis a quaerat quae natus est libero.No26 Mar 12:37Edit
433ut facereSit sapiente ducimus earum quia.No15 May 12:37Edit

Fork me on GitHub