Class: DaisyUI::Toggle
Constant Summary
Constants inherited from Base
Base::BOOLS, Base::COLOR_MODIFIERS
Instance Method Summary collapse
-
#initialize(as: :input) ⇒ Toggle
constructor
A new instance of Toggle.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(as: :input) ⇒ Toggle
Returns a new instance of Toggle.
8 9 10 |
# File 'lib/daisy_ui/toggle.rb', line 8 def initialize(*, as: :input, **) super end |
Instance Method Details
#view_template ⇒ Object
12 13 14 |
# File 'lib/daisy_ui/toggle.rb', line 12 def view_template(&) public_send(as, type: :checkbox, class: classes, **attributes, &) end |