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