Module: Primer::Forms
- Defined in:
- app/lib/primer/forms.rb,
app/lib/primer/forms/base.rb,
app/lib/primer/forms/group.rb,
app/lib/primer/forms/multi.rb,
app/lib/primer/forms/utils.rb,
app/lib/primer/forms/button.rb,
app/lib/primer/forms/select.rb,
app/lib/primer/forms/builder.rb,
app/lib/primer/forms/caption.rb,
app/lib/primer/forms/check_box.rb,
app/lib/primer/forms/dsl/input.rb,
app/lib/primer/forms/form_list.rb,
app/lib/primer/forms/separator.rb,
app/lib/primer/forms/text_area.rb,
app/lib/primer/forms/text_field.rb,
app/lib/primer/forms/action_menu.rb,
app/lib/primer/forms/form_control.rb,
app/lib/primer/forms/hidden_field.rb,
app/lib/primer/forms/radio_button.rb,
app/lib/primer/forms/auto_complete.rb,
app/lib/primer/forms/submit_button.rb,
app/lib/primer/forms/toggle_switch.rb,
app/lib/primer/forms/base_component.rb,
app/lib/primer/forms/form_reference.rb,
app/lib/primer/forms/buffer_rewriter.rb,
app/lib/primer/forms/check_box_group.rb,
app/lib/primer/forms/dsl/form_object.rb,
app/lib/primer/forms/dsl/input_group.rb,
app/lib/primer/forms/dsl/multi_input.rb,
app/lib/primer/forms/spacing_wrapper.rb,
app/lib/primer/forms/dsl/button_input.rb,
app/lib/primer/forms/dsl/hidden_input.rb,
app/lib/primer/forms/dsl/select_input.rb,
app/lib/primer/forms/acts_as_component.rb,
app/lib/primer/forms/dsl/input_methods.rb,
app/lib/primer/forms/radio_button_group.rb,
app/lib/primer/forms/toggle_switch_form.rb,
app/lib/primer/forms/validation_message.rb,
app/lib/primer/forms/dsl/check_box_input.rb,
app/lib/primer/forms/dsl/text_area_input.rb,
app/lib/primer/forms/dsl/text_field_input.rb,
app/lib/primer/forms/dsl/action_menu_input.rb,
app/lib/primer/forms/dsl/radio_button_input.rb,
app/lib/primer/forms/dsl/auto_complete_input.rb,
app/lib/primer/forms/dsl/submit_button_input.rb,
app/lib/primer/forms/dsl/toggle_switch_input.rb,
app/lib/primer/forms/dsl/form_reference_input.rb,
app/lib/primer/forms/dsl/check_box_group_input.rb,
app/lib/primer/forms/dsl/radio_button_group_input.rb,
app/lib/primer/forms/primer_base_component_wrapper.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ActsAsComponent, Dsl, Tags, Utils Classes: ActionMenu, AutoComplete, Base, BaseComponent, BufferRewriter, Builder, Button, Caption, CheckBox, CheckBoxGroup, FormControl, FormList, FormReference, Group, HiddenField, Multi, PrimerBaseComponentWrapper, RadioButton, RadioButtonGroup, Select, Separator, SpacingWrapper, SubmitButton, TextArea, TextField, ToggleSwitch, ToggleSwitchForm, ValidationMessage
Class Method Summary collapse
Class Method Details
.inline_form(builder, base = nil, &block) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/lib/primer/forms.rb', line 6 def self.inline_form(builder, base = nil, &block) base ||= defined?(ApplicationForm) ? ApplicationForm : Primer::Forms::Base klass = Class.new(base) do form(&block) end klass.new(builder) end |