FEATURE: allow wizard checkbox field to be disabled (#17916)

* FEATURE: allow wizard checkbox field to be disabled

* Changes per review feedback
This commit is contained in:
Arpit Jalan
2022-08-15 05:52:07 +05:30
committed by GitHub
parent 0be67cb513
commit 3a21618e4e
5 changed files with 17 additions and 4 deletions

View File

@ -16,7 +16,7 @@ class Wizard
end
class Field
attr_reader :id, :type, :required, :value, :icon, :choices, :show_in_sidebar
attr_reader :id, :type, :required, :value, :icon, :choices, :disabled, :show_in_sidebar
attr_accessor :step
def initialize(attrs)
@ -27,6 +27,7 @@ class Wizard
@required = !!attrs[:required]
@value = attrs[:value]
@icon = attrs[:icon]
@disabled = attrs[:disabled]
@choices = []
@show_in_sidebar = attrs[:show_in_sidebar]
end