Method: BetterUi::General::Field::Component#initialize
- Defined in:
- app/components/better_ui/general/field/component.rb
#initialize(text:, name:, required: false, error: nil, help_text: nil, id: nil) ⇒ Component
Returns a new instance of Component.
17 18 19 20 21 22 23 24 25 |
# File 'app/components/better_ui/general/field/component.rb', line 17 def initialize(text:, name:, required: false, error: nil, help_text: nil, id: nil) @text = text @name = name @required = required @error = error @help_text = help_text @id = id super() end |