class Primer::Forms::Dsl::RadioButtonGroupInput
:nodoc:
def autofocus!
def autofocus! @radio_buttons.first&.autofocus! end
def focusable?
def focusable? true end
def initialize(name:, label: nil, **system_arguments)
def initialize(name:, label: nil, **system_arguments) @name = name @label = label @radio_buttons = [] super(**system_arguments) yield(self) if block_given? end
def radio_button(**system_arguments, &block)
def radio_button(**system_arguments, &block) @radio_buttons << RadioButtonInput.new( builder: @builder, form: @form, name: @name, disabled: disabled?, **system_arguments, &block ) end
def to_component
def to_component RadioButtonGroup.new(input: self) end
def type
def type :radio_button_group end