Class: Flowbite::InputField::Select
- Inherits:
-
Flowbite::InputField
- Object
- ViewComponent::Base
- Flowbite::InputField
- Flowbite::InputField::Select
- Defined in:
- app/components/flowbite/input_field/select.rb
Instance Method Summary collapse
-
#initialize(attribute:, form:, collection: [], disabled: false, hint: nil, include_blank: false, input: {}, label: {}, multiple: false, size: :default) ⇒ Select
constructor
A new instance of Select.
- #input ⇒ Object
Methods inherited from Flowbite::InputField
Constructor Details
#initialize(attribute:, form:, collection: [], disabled: false, hint: nil, include_blank: false, input: {}, label: {}, multiple: false, size: :default) ⇒ Select
Returns a new instance of Select.
6 7 8 9 10 11 |
# File 'app/components/flowbite/input_field/select.rb', line 6 def initialize(attribute:, form:, collection: [], disabled: false, hint: nil, include_blank: false, input: {}, label: {}, multiple: false, size: :default) super(attribute: attribute, disabled: disabled, form: form, hint: hint, input: input, label: label, size: size) @collection = collection @include_blank = include_blank @multiple = multiple end |
Instance Method Details
#input ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/components/flowbite/input_field/select.rb', line 13 def input render( input_component.new( attribute: @attribute, collection: @collection, disabled: @disabled, form: @form, include_blank: @include_blank, multiple: @multiple, options: , size: @size ) ) end |