class Primer::Forms::Dsl::SelectInput
:nodoc:
def focusable?
def focusable? true end
def initialize(name:, label:, **options)
def initialize(name:, label:, **options) @name = name @label = label @options = [] @select_arguments = {}.tap do |select_args| SELECT_ARGUMENTS.each do |select_arg| select_args[select_arg] = options.delete(select_arg) end end super(**options) yield(self) if block_given? end
def multiple?
def multiple? @select_arguments.fetch(:multiple, false) end
def to_component
def to_component Ariadne::Form::Select::Component.new(name:, label:, **@options) end
def type
def type :select_list end