Module: IndexFor
- Defined in:
- lib/index_for.rb,
lib/index_for/helper.rb,
lib/index_for/builder.rb,
lib/index_for/version.rb,
lib/index_for/attribute.rb,
lib/index_for/share_helper.rb,
lib/index_for/builders/wice_builder.rb,
lib/index_for/builders/action_builder.rb,
lib/generators/index_for/install_generator.rb,
lib/index_for/builders/body_column_builder.rb,
lib/index_for/builders/head_column_builder.rb,
lib/index_for/builders/list_column_builder.rb,
lib/index_for/builders/wice_head_column_builder.rb
Defined Under Namespace
Modules: Attribute, Generators, Helper, ShareHelper Classes: ActionBuilder, BodyColumnBuilder, Builder, HeadColumnBuilder, ListColumnBuilder, WiceBuilder, WiceHeadColumnBuilder
Constant Summary collapse
- VERSION =
"0.3.2"
- @@table_tag =
:table
- @@table_class =
nil
- @@table_head_tag =
:thead
- @@table_head_class =
nil
- @@table_body_tag =
:tbody
- @@table_body_class =
nil
- @@table_row_tag =
:tr
- @@table_row_class =
nil
- @@table_head_cell_tag =
:th
- @@table_head_cell_class =
nil
- @@table_body_cell_tag =
:td
- @@table_body_cell_class =
nil
- @@table_actions_cell_class =
:actions
- @@action_link_class =
:action
- @@list_tag =
:dl
- @@list_class =
nil
- @@list_row_tag =
nil
- @@list_row_class =
nil
- @@list_label_tag =
:dt
- @@list_label_class =
nil
- @@list_content_tag =
:dd
- @@list_content_class =
nil
- @@list_label_proc =
nil
- @@blank_content_class =
"blank"
- @@i18n_format =
:default
- @@association_methods =
[ :name, :title, :to_s ]
- @@collection_tag =
:ul
- @@collection_column_tag =
:li
- @@per_pages =
[10, 25, 50, 100]
- @@per_page =
@@per_pages.first
- @@formatters =
{}
Class Method Summary collapse
- .format(key, &block) ⇒ Object
-
.setup {|_self| ... } ⇒ Object
Yield self for configuration block:.
Class Method Details
.format(key, &block) ⇒ Object
107 108 109 |
# File 'lib/index_for.rb', line 107 def self.format key, &block formatters[key] = block end |
.setup {|_self| ... } ⇒ Object
Yield self for configuration block:
IndexFor.setup do |config|
config.index_for_tag = :div
end
101 102 103 |
# File 'lib/index_for.rb', line 101 def self.setup yield self end |