Class: Primer::Forms::SubmitButton
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Primer::Forms::SubmitButton
- Defined in:
- app/lib/primer/forms/submit_button.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(input:) ⇒ SubmitButton
constructor
A new instance of SubmitButton.
Methods inherited from BaseComponent
compile!, #content, #input?, #perform_render, #render?, #to_component, #type
Methods included from ActsAsComponent
#compile!, extended, #renders_templates
Methods included from ClassNameHelper
Constructor Details
#initialize(input:) ⇒ SubmitButton
Returns a new instance of SubmitButton.
9 10 11 |
# File 'app/lib/primer/forms/submit_button.rb', line 9 def initialize(input:) @button = Button.new(input: input, type: :submit) end |