Class: ExpressTemplates::Components::Forms::Submit
- Inherits:
-
FormComponent
- Object
- Expander
- Base
- FormComponent
- ExpressTemplates::Components::Forms::Submit
- Defined in:
- lib/express_templates/components/forms/submit.rb
Instance Attribute Summary
Attributes inherited from Expander
#handlers, #locals, #stack, #template
Instance Method Summary collapse
Methods inherited from FormComponent
#compile, #field_name, #field_name_attribute, #field_wrapper_class, #label_name, #label_text, #parent_form, #resource_class, #resource_name, #resource_var
Methods included from Capabilities::Adoptable
Methods included from Capabilities::Configurable
Methods inherited from Base
Methods included from Capabilities::Iterating
Methods included from Capabilities::Wrapping
Methods included from Capabilities::Rendering
Methods included from Capabilities::Templating
Methods included from Macro
Methods inherited from Expander
#expand, #initialize, #initialize_expander, #method_missing, #process_children!, register_macros_for
Constructor Details
This class inherits a constructor from ExpressTemplates::Expander
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ExpressTemplates::Expander
Instance Method Details
#html_options ⇒ Object
20 21 22 |
# File 'lib/express_templates/components/forms/submit.rb', line 20 def @config end |
#value ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/express_templates/components/forms/submit.rb', line 12 def value if @args.first.is_a?(String) @args.first else 'Save' end end |