Module: PhlexForms::DelegatedField
- Included in:
- Forms::Checkbox, Forms::FileInput, Forms::Input, Forms::Radio, Forms::Range, Forms::Select, Forms::Textarea, Forms::TimeZoneSelect, Forms::Toggle, Forms::WrappedInput
- Defined in:
- lib/phlex_forms/delegated_field.rb
Overview
Shared helpers for the model-bound leaf components that delegate their markup and variants to a daisyui gem component (DaisyUI::Input/Textarea/Select/...).
A host component sets @modifiers, @error, @disabled, @required, @full_width, and @attributes in its initializer, then calls #daisy_modifiers and #binding_attributes to assemble the delegated component's arguments.
Constant Summary collapse
- IGNORED_MODIFIERS =
daisyui v4
:borderedis a no-op in v5 (base component class has the border); accept it silently so v4-era call sites don't break. %i[bordered].freeze