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

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

Instance Attribute Summary

Attributes inherited from FormComponent

#input_attributes

Instance Method Summary collapse

Methods inherited from FormComponent

#field_name, #field_name_attribute, #label_name, #label_text, #parent_form, #resource_class, #resource_var

Methods inherited from Configurable

#build, #config, emits, has_argument, has_option, #required_options

Methods inherited from Base

before_build, #build, builder_method_and_class, #builder_method_name, builder_method_name, contains, descendants, has_attributes, inherited, #initialize, #resource, 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