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
__construct(string|Stringable|null $caption = null)
No description
void
loadHttpData()
Loads HTTP data.
bool
isSubmittedBy()
Tells if the form was submitted by this button.
setValidationScope(iterable|null $scope)
Sets the validation scope. Clicking the button validates only the controls within the specified scope.
array|null
getValidationScope()
Gets the validation scope.
void
click()
Fires click event.
Html|string
getControl(string|Stringable|null $caption = null)
Generates control's HTML element.
Details
at line 34
__construct(string|Stringable|null $caption = null)
No description
at line 41
void
loadHttpData()
Loads HTTP data.
at line 53
bool
isSubmittedBy()
Tells if the form was submitted by this button.
at line 63
SubmitButton
setValidationScope(iterable|null $scope)
Sets the validation scope. Clicking the button validates only the controls within the specified scope.
at line 89
array|null
getValidationScope()
Gets the validation scope.
at line 98
void
click()
Fires click event.
at line 104
Html|string
getControl(string|Stringable|null $caption = null)
Generates control's HTML element.