Class: ExpressTemplates::Components::Forms::Submit

Inherits:
FormComponent show all
Defined in:
lib/express_templates/components/forms/submit.rb

Constant Summary

Constants inherited from Base

Base::MAP

Instance Attribute Summary

Attributes inherited from FormComponent

#input_attributes

Instance Method Summary collapse

Methods inherited from FormComponent

#field_helper_options, #field_id_attribute, #field_name, #field_name_attribute, #field_value, #label_name, #label_text, #parent_form, #resource, #resource_class

Methods included from Capabilities::Configurable

included

Methods inherited from Base

abstract_component, abstract_component?, before_build, #build, builder_method, builder_method_and_class, contains, descendants, has_attributes, inherited, #initialize, require_parent, required_parent, tag

Constructor Details

This class inherits a constructor from ExpressTemplates::Components::Base

Instance Method Details

#resource_nameObject



19
20
21
# File 'lib/express_templates/components/forms/submit.rb', line 19

def resource_name
  parent_form ? super : nil
end

#valueObject



23
24
25
# File 'lib/express_templates/components/forms/submit.rb', line 23

def value
  config[:value]
end