We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e61762f commit bfa84a4Copy full SHA for bfa84a4
src/Form.php
@@ -83,9 +83,9 @@ public function view()
83
]);
84
}
85
86
- public function disable()
+ public function disable($disabled = true)
87
{
88
- $this->disabled = true;
+ $this->disabled = $disabled;
89
90
return $this;
91
@@ -95,6 +95,11 @@ public function isDisabled()
95
return $this->disabled;
96
97
98
+ public function isEnabled()
99
+ {
100
+ return !$this->disabled;
101
+ }
102
+
103
public function render()
104
105
$this->setupFormName();
0 commit comments