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
    
  • <%= 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 -%>
    
  • .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'
281-300 / 500 Alle rijen tonen
281velitDolorum quaerat asperiores itaque quibusdam libero aspernatur sed eius.No20 Mar 12:37Edit
282explicabo illumEt rem occaecati voluptatem ullam et error.No20 May 12:37Edit
283quamVoluptatem id dolore non.No13 Jun 12:37Edit
284illo explicaboVel quibusdam quia repellendus eligendi at.No28 Mar 12:37Edit
285iure veniam numquamVoluptas eius possimus eos voluptates asperiores voluptatem perferendis.No29 May 12:37Edit
286excepturi deleniti corporisRepudiandae inventore neque et.No01 May 12:37Edit
287sint non dolorAb aut rerum ut sequi tenetur voluptate repellat non.No07 May 12:37Edit
288consectetur dolores delectusQuia vel vitae dolorum iusto illo velit.No18 May 12:37Edit
289quasiQui est mollitia minus tempore eaque perferendis non.No31 May 12:37Edit
290voluptasIste aut occaecati quo voluptates facere consequatur.No02 Jun 12:37Edit
291odio fugit etCupiditate repudiandae corrupti sed culpa cumque vitae aut et.No16 Jun 12:37Edit
292excepturi hicEsse saepe deserunt ipsam.No24 May 12:37Edit
293sed est estUllam dolores iste ut perspiciatis necessitatibus id illo.Yes22 Apr 12:37Edit
294fugiat evenietAccusamus ut et nesciunt sit corrupti.No08 Jun 12:37Edit
295itaque velitVoluptatem rerum non expedita illum et quod.No30 Apr 12:37Edit
296cupiditate in minimaSit aspernatur tempore id.Yes02 May 12:37Edit
297dolores magnam eosAsperiores possimus modi sint et quia.No12 Mar 12:37Edit
298iusto quae ipsamEa nihil vel ea.No10 May 12:37Edit
299consequaturExercitationem voluptatem sint ad.No14 Apr 12:37Edit
300minimaConsequatur nesciunt tempora asperiores quo ipsa repudiandae qui dolorem.Yes07 Apr 12:37Edit

Fork me on GitHub