Sha256: 7337d60bad266e6525385b51e28a0202363af4d42de553b69eb6fed2f31ee745
Contents?: true
Size: 708 Bytes
Versions: 40
Compression:
Stored size: 708 Bytes
Contents
# frozen_string_literal: true module Ariadne module Forms module Dsl # :nodoc: class SubmitButtonInput < Input attr_reader :name, :label, :block def initialize(name:, label:, **options, &block) @name = name @label = label @block = block super(**options) end def to_component html_attrs = @input_attributes || {} Ariadne::UI::Button::Component.new(type: :submit, **@options, html_attrs: html_attrs).with_content(@label) end # :nocov: def type :submit_button end def supports_validation? false end end end end end
Version data entries
40 entries across 40 versions & 1 rubygems