Class: Uistiti::Alpha::FormSubmit
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Uistiti::Alpha::FormSubmit
- Defined in:
- app/components/uistiti/alpha/form_submit.rb
Instance Method Summary collapse
- #classes ⇒ Object
-
#initialize(form:, text:, color:) ⇒ FormSubmit
constructor
A new instance of FormSubmit.
Constructor Details
#initialize(form:, text:, color:) ⇒ FormSubmit
Returns a new instance of FormSubmit.
6 7 8 9 10 11 12 |
# File 'app/components/uistiti/alpha/form_submit.rb', line 6 def initialize(form: ,text: ,color:) super() @form = form @text = text @color = color end |
Instance Method Details
#classes ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/components/uistiti/alpha/form_submit.rb', line 14 def classes [ "FormSubmit", "Button", "Button--#{@color}" ] end |