Class: Flowbite::InputField::RadioButton

Inherits:
Flowbite::InputField show all
Defined in:
app/components/flowbite/input_field/radio_button.rb

Instance Method Summary collapse

Methods inherited from Flowbite::InputField

#errors

Constructor Details

#initialize(attribute:, form:, value:, disabled: false, hint: nil, input: {}, label: {}) ⇒ RadioButton

Returns a new instance of RadioButton.



6
7
8
9
# File 'app/components/flowbite/input_field/radio_button.rb', line 6

def initialize(attribute:, form:, value:, disabled: false, hint: nil, input: {}, label: {})
  super(attribute: attribute, form: form, disabled: disabled, hint: hint, input: input, label: label)
  @value = value
end