AntonyThorpe\Knockout\KnockoutFormAction
KnockoutFormAction
Wrap HTML in an Knockout if statement to disable the submit key when invalid (as per Knockout Validation)
Synopsis
class KnockoutFormAction
extends FormAction
{
- // members
- protected string $disabledClass = "FormAction_Disabled";
- protected array $casting = ;
- // methods
- public $this setDisabledClass()
- public string getDisabledClass()
- // Inherited methods from Common
- public $this setObservable()
- public string getObservable()
- public $this setBindingType()
- public string getBindingType()
- public string getOtherBindings()
- public $this setOtherBindings()
- public $this setHasFocus()
- public boolean getHasFocus()
Hierarchy
Members
protected
-
$casting
casting of variables for security purposes - $disabledClass
—
string
$disabledClass - $hasFocus
—
boolean
$hasFocus - $observable
—
string
$observable - $otherBindings
—
string
$otherBindings
Methods
public
- getDisabledClass() — getDisabledClass
- setDisabledClass() — setDisabledClass
Inherited from AntonyThorpe\Knockout\Common
public
- getBindingType() — getBindingType
- getHasFocus() — getHasFocus
- getObservable() — getObservable
- getOtherBindings() — getOtherBindings
- setBindingType() — setbindingType
- setHasFocus() — setHasFocus
- setObservable() — setObservable
- setOtherBindings() — setOtherBindings