Module: PhlexForms
- Defined in:
- lib/phlex_forms.rb,
lib/phlex_forms/theme.rb,
lib/phlex_forms/engine.rb,
lib/phlex_forms/builder.rb,
lib/phlex_forms/version.rb,
lib/phlex_forms/inference.rb,
lib/phlex_forms/class_merge.rb,
lib/phlex_forms/inline_icons.rb,
lib/phlex_forms/configuration.rb,
lib/phlex_forms/delegated_field.rb
Overview
phlex-forms exposes its components under the Forms:: namespace (Form, Input,
Select, Submit, Label, ...) so that consuming apps can include Forms and call
Form(model:) { |f| ... } as a Phlex::Kit helper. Gem-internal machinery
(configuration, the icon renderer) lives under PhlexForms:: to keep the
Forms:: namespace clean for components only.
Defined Under Namespace
Modules: Builder, ClassMerge, DelegatedField, Inference, InlineIcons Classes: Configuration, Engine, Error, FeatureUnavailable, Theme
Constant Summary collapse
- VERSION =
"0.2.3"
Class Method Summary collapse
- .configuration ⇒ Object (also: config)
- .configure {|configuration| ... } ⇒ Object
-
.reset_configuration! ⇒ Object
Reset configuration to defaults.
Class Method Details
.configuration ⇒ Object Also known as: config
43 44 45 |
# File 'lib/phlex_forms.rb', line 43 def configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
48 49 50 |
# File 'lib/phlex_forms.rb', line 48 def configure yield(configuration) end |
.reset_configuration! ⇒ Object
Reset configuration to defaults. Intended for test isolation.
53 54 55 |
# File 'lib/phlex_forms.rb', line 53 def reset_configuration! @configuration = Configuration.new end |