Module: Fancygrid
- Defined in:
- lib/fancygrid/grid.rb,
lib/fancygrid.rb,
lib/fancygrid/node.rb,
lib/fancygrid/column.rb,
lib/fancygrid/view_state.rb,
lib/fancygrid/view/helper.rb,
lib/fancygrid/object_wrapper.rb,
lib/fancygrid/controller/helper.rb,
lib/fancygrid/orm/active_record.rb,
lib/fancygrid/orm/sql_generator.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Controller, Orm, View Classes: Column, Engine, Grid, Node, ObjectWrapper, ViewState
Constant Summary collapse
- @@base_template =
"fancygrid/fancygrid"
- @@table_template =
"fancygrid/table"
- @@controls_template =
"fancygrid/controls"
- @@sort_template =
"fancygrid/sort"
- @@search_template =
"fancygrid/search"
- @@i18n_scope =
"fancygrid"
- @@components =
[:top_bar, :bottom_bar, :search_bar, :table]
- @@orm =
"fancygrid/orm/active_record"
- @@hide_search =
true
- @@search_operators =
Fancygrid::Orm::SqlGenerator::OPERATOR_NAMES
- @@search_operator =
:like
- @@per_page_values =
[5, 10, 15, 20, 25, 30, 40, 50, 100]
- @@per_page_value =
20
- @@ajax_type =
:get
- @@persist_state =
false
Class Method Summary collapse
Class Method Details
.default_options ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/fancygrid.rb', line 65 def self. { :base_template => self.base_template, :table_template => self.table_template, :controls_template => self.controls_template, :sort_template => self.sort_template, :search_template => self.search_template, :i18n_scope => self.i18n_scope, :components => self.components, :orm => self.orm, :hide_search => self.hide_search, :search_operators => self.search_operators, :search_operator => self.search_operator, :per_page_values => self.per_page_values, :per_page_value => self.per_page_value, :ajax_type => self.ajax_type, :persist_state => self.persist_state } end |
.setup {|_self| ... } ⇒ Object
61 62 63 |
# File 'lib/fancygrid.rb', line 61 def self.setup yield self end |