Class: Coco::App::Fields::SubmitComponent
- Inherits:
-
ViewComponent::Form::SubmitComponent
- Object
- ViewComponent::Form::SubmitComponent
- Coco::App::Fields::SubmitComponent
- Includes:
- Concerns::ActsAsFieldWithOptions
- Defined in:
- app/components/coco/app/fields/submit_component.rb
Instance Method Summary collapse
Methods included from Concerns::ActsAsFieldWithOptions
Methods included from Coco::AppHelper
#coco_button, #coco_button_group, #coco_color_picker_button, #coco_confirm_button, #coco_dropdown_button, #coco_fields, #coco_form_button, #coco_form_for, #coco_form_with, #coco_image_picker_button, #coco_layout_picker_button, #coco_link, #coco_menu_button, #coco_notice, #coco_seamless_textarea, #coco_snackbar, #coco_system_banner, #coco_toast, #coco_toolbar
Methods included from Concerns::HasName
Instance Method Details
#call ⇒ Object
7 8 9 10 11 |
# File 'app/components/coco/app/fields/submit_component.rb', line 7 def call (**, type: :submit) do content || value end end |