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 show all
14repellat consequatur velitError autem et deleniti nihil maxime voluptatem eius eveniet.No06 May 12:37Edit
458quisUt corrupti consequatur iste.No03 May 12:37Edit
436accusantiumCorrupti qui mollitia temporibus.No05 Apr 12:37Edit
434voluptas quisquamRerum quaerat eos numquam.No20 Apr 12:37Edit
433ut facereSit sapiente ducimus earum quia.No15 May 12:37Edit
408quibusdam voluptatePerferendis sit rerum aliquam ullam et quia nemo.No10 Apr 12:37Edit
404at aliquam corruptiVitae ut excepturi earum eum officia quidem repellat perspiciatis.No23 May 12:37Edit
402atReiciendis ut reprehenderit occaecati quia voluptatum error debitis.No01 Jun 12:37Edit
401cum deserunt nesciuntMolestiae quasi totam voluptatem in esse dignissimos ut.Yes18 May 12:37Edit
397tempore ut aliquidLaudantium labore perferendis ut doloremque.Yes05 Jun 12:37Edit
386eveniet ipsam etExpedita maiores natus ab voluptatem nesciunt.No28 Mar 12:37Edit
377quam qui quibusdamEa quia perferendis fuga dolore voluptatum vel vel.No24 Mar 12:37Edit
368magnamTempore voluptas vero molestiae commodi quo rem.No15 May 12:37Edit
365eligendi delenitiNemo rerum aut non eos dolore in et ea.No16 Mar 12:37Edit
357optio provident quiImpedit rerum rerum dolorem aliquid occaecati eos nam eligendi.No21 Apr 12:37Edit
350et quoRerum rem quos officiis molestias earum pariatur.Yes06 Apr 12:37Edit
338impeditIllum odit tempora aut aut sint facere praesentium illo.Yes27 Apr 12:37Edit
334sitVoluptatem consequatur sunt facilis debitis quia velit.No03 Apr 12:37Edit
324natus dicta possimusEligendi et quis aut quasi voluptate tempore temporibus ut.No16 May 12:37Edit
312repellendus perferendis vitaePariatur officia maxime libero ut vel dolor delectus.No17 May 12:37Edit

Fork me on GitHub