SubmitButton
class SubmitButton extends Button implements SubmitterControl
Submittable button control.
Properties
| $onClick | Occurs when the button is clicked and form is successfully validated |
||
| $onInvalidClick | |||
| bool read-only | $submittedBy |
Methods
No description
Loads HTTP data.
Tells if the form was submitted by this button.
Sets the validation scope. Clicking the button validates only the controls within the specified scope.
Returns the validation scope, or null if the entire form is validated.
Invokes the onClick handlers.
Generates control's HTML element.
Details
at line 37
__construct(string|Stringable|null $caption = null)
No description
at line 44
void
loadHttpData()
Loads HTTP data.
at line 56
bool
isSubmittedBy()
Tells if the form was submitted by this button.
at line 66
SubmitButton
setValidationScope(iterable|null $scope)
Sets the validation scope. Clicking the button validates only the controls within the specified scope.
at line 92
array|null
getValidationScope()
Returns the validation scope, or null if the entire form is validated.
at line 101
void
click()
Invokes the onClick handlers.
at line 107
Html|string
getControl(string|Stringable|null $caption = null)
Generates control's HTML element.