Sha256: d7dc66dcc680ba9af898eff970456d939eef5891b3e39d1d70f4351738e16046
Contents?: true
Size: 627 Bytes
Versions: 39
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true module Ariadne module Forms module Dsl # :nodoc: class HiddenInput < Input attr_reader :name, :value def initialize(name:, value:, **options) @name = name @value = value super(**options) end def to_component html_attrs = @input_attributes || {} Ariadne::Form::HiddenField::Component.new(name:, value:, html_attrs: html_attrs) end # :nocov: def type :hidden end def supports_validation? false end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems