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 -%>
    
61-80 / 500 Sýna allt
61quia architectoRerum sit aliquid quia corrupti praesentium.No15 May 12:37Edit
62eum velit saepeVoluptas voluptas nesciunt in eos eum inventore.No15 Mar 12:37Edit
63accusamusPraesentium quod ipsum error odit.No15 Apr 12:37Edit
64reiciendisQuaerat voluptatum nihil iure.No30 Mar 12:37Edit
65eosOccaecati atque assumenda qui deleniti.Yes21 Apr 12:37Edit
66vitae at autemNihil quae dolores quia ut non.No06 May 12:37Edit
67officia quo maioresAut aperiam aut sint voluptas voluptatibus ut cumque id.No15 Jun 12:37Edit
68exercitationem delectusSapiente ipsa dolorem aut sed cumque in esse.No12 May 12:37Edit
69similique placeat ipsaAlias ratione autem ut impedit non nihil itaque eaque.No08 May 12:37Edit
70autemSit ipsa aut qui quia voluptatem omnis.No25 Mar 12:37Edit
71atRatione distinctio eligendi quaerat.No28 Apr 12:37Edit
72illum explicabo modiNesciunt exercitationem quisquam commodi ut.No16 Jun 12:37Edit
73iure architectoVoluptatum aperiam ad dolore aut fugit.No05 Apr 12:37Edit
74molestiaeAd dolores occaecati fuga ratione praesentium quo.No22 May 12:37Edit
75velit non magniTotam dolor est sint et sed.No07 May 12:37Edit
76totamDistinctio et pariatur non est consequatur enim.No31 Mar 12:37Edit
77sed quibusdam isteQuis non ducimus quia perferendis.No03 Jun 12:37Edit
78exercitationem sapienteQuasi numquam aut magnam expedita dolor repudiandae officiis.No07 Apr 12:37Edit
79animiCorporis est inventore nesciunt est nam voluptas et.No04 May 12:37Edit
80corrupti officiaDolore odit consequatur dolores quia deleniti veniam.No12 Mar 12:37Edit

Fork me on GitHub