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 Alle rijen tonen
90commodi et quisConsequatur soluta eligendi et consequatur.No27 Apr 12:37Edit
428commodi omnis temporeEsse sint deleniti a rerum est praesentium unde.No18 Mar 12:37Edit
288consectetur dolores delectusQuia vel vitae dolorum iusto illo velit.No18 May 12:37Edit
299consequaturExercitationem voluptatem sint ad.No14 Apr 12:37Edit
345consequatur est sequiConsectetur libero quia ut dicta.No20 May 12:37Edit
460consequatur nemoVel minus voluptatem facere voluptatem sit.No10 Apr 12:37Edit
236consequatur quisquamMinus mollitia ab quia soluta provident aut tempora aut.No05 Jun 12:37Edit
482consequuntur eumMaiores quo voluptatibus rerum ipsam consequatur.No01 May 12:37Edit
331consequuntur ipsa quiVoluptatem et quo fugiat sint dignissimos ut provident soluta.No15 Jun 12:37Edit
280corporisVoluptate et necessitatibus distinctio et.No13 May 12:37Edit
219corrupti magni voluptatemFugit ut nihil quae quaerat qui.No05 May 12:37Edit
30corrupti molestiae abRepellat ipsa quis quam alias dolores itaque.No29 Apr 12:37Edit
80corrupti officiaDolore odit consequatur dolores quia deleniti veniam.No12 Mar 12:37Edit
464culpaError deleniti qui quaerat sint.No23 May 12:37Edit
361culpaQuaerat sit tempore deleniti amet rerum unde sunt.No01 Apr 12:37Edit
88culpaOccaecati aut eum vero quasi dolorem.No25 May 12:37Edit
269culpa assumendaOmnis voluptatem atque et mollitia a.No12 Mar 12:37Edit
401cum deserunt nesciuntMolestiae quasi totam voluptatem in esse dignissimos ut.Yes18 May 12:37Edit
261cumque voluptasQuod distinctio iusto quia quas voluptatem est.No05 Apr 12:37Edit
296cupiditate in minimaSit aspernatur tempore id.Yes02 May 12:37Edit

Fork me on GitHub