Add form field update capability to toggle components
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
|
||||
module FormElements
|
||||
class FieldsetToggleComponent < ViewComponent::Base
|
||||
def initialize(tag: "li", enabled: false, input_enabled: true, title:, description:)
|
||||
def initialize(form: nil, attribute: nil, tag: "li", enabled: false,
|
||||
input_enabled: true, title:, description:)
|
||||
@form = form
|
||||
@attribute = attribute
|
||||
@tag = tag
|
||||
@enabled = enabled
|
||||
@input_enabled = input_enabled
|
||||
|
||||
Reference in New Issue
Block a user