Class: Uistiti::Alpha::Toggle
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Uistiti::Alpha::Toggle
- Defined in:
- app/components/uistiti/alpha/toggle.rb
Instance Method Summary collapse
-
#initialize(checked:, path:, model:, field:, color_on: :success, color_off: :disabled) ⇒ Toggle
constructor
A new instance of Toggle.
Constructor Details
#initialize(checked:, path:, model:, field:, color_on: :success, color_off: :disabled) ⇒ Toggle
Returns a new instance of Toggle.
6 7 8 9 10 11 12 13 14 15 |
# File 'app/components/uistiti/alpha/toggle.rb', line 6 def initialize(checked: , path:, model:, field:, color_on: :success, color_off: :disabled) super() @checked = checked @path = path @model = model @field = field @color_off = color_off @color_on = color_on end |