Sha256: 9301f97ed1aeb642f43ee0cb82917506e809edcb47258f62193de1d753315082
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 Bytes
Contents
# frozen_string_literal: true module Yattho module Forms module Dsl # :nodoc: class SubmitButtonInput < Input attr_reader :name, :label, :block def initialize(name:, label:, **system_arguments, &block) @name = name @label = label @block = block super(**system_arguments) end def to_component SubmitButton.new(input: self) end # :nocov: def type :submit_button end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yattho_view_components-0.1.1 | lib/yattho/forms/dsl/submit_button_input.rb |
yattho_view_components-0.0.1 | lib/yattho/forms/dsl/submit_button_input.rb |