Class SubmitButton (namespace Nette\Forms)
Submittable button control.
Object | --Component | --FormControl | --Button | --SubmitButton
Implements interfaces:
Direct Known Sub-classes:
Public Method Summary | |
---|---|
SubmitButton |
__construct
([string $caption =
NULL ])
|
void |
click
()
Fires click event.
|
mixed |
Gets the validation scope.
|
bool |
Tells if the form was submitted by this button.
|
SubmitButton |
setValidationScope
(mixed $scope)
Sets the validation scope. Clicking the button validates only the controls within the specified scope.
|
SubmitButton |
setValue
(bool $value)
Sets 'pressed' indicator.
|
static bool |
validateSubmitted
(ISubmitterControl $control)
Submitted validator: has been button pressed?
|
Methods Inherited From Button |
---|
__construct(), getControl(), getLabel() |
Methods Inherited From Component |
---|
__construct(), attached(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent(), __clone(), __wakeup() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary | ||||
---|---|---|---|---|
array | $onClick |
|
line 41 of function(SubmitButton $sender); Occurs when the button is clicked and form is successfully validated |
|
array | $onInvalidClick |
|
line 44 of function(SubmitButton $sender); Occurs when the button is clicked and form is not validated |
Method Details | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
line 54 __constructpublic SubmitButton __construct ([string $caption = Overridden in child classes as:
|
||||||||||||
line 120 clickpublic void click () Fires click event.
|
||||||||||||
line 109 getValidationScopepublic mixed getValidationScope () Gets the validation scope. Implementation of:
|
||||||||||||
line 84 isSubmittedBypublic bool isSubmittedBy () Tells if the form was submitted by this button. Implementation of:
|
||||||||||||
line 96 setValidationScopepublic SubmitButton setValidationScope (mixed $scope) Sets the validation scope. Clicking the button validates only the controls within the specified scope.
|
||||||||||||
line 67 setValuepublic SubmitButton setValue (bool $value) Sets 'pressed' indicator. Implementation of:
|
||||||||||||
line 132 validateSubmittedpublic static bool validateSubmitted (ISubmitterControl $control) Submitted validator: has been button pressed?
|