Class SubmitButton
Submittable button control.
-
Nette\Object
-
Nette\ComponentModel\Component
implements
Nette\ComponentModel\IComponent
-
Nette\Forms\Controls\BaseControl
implements
Nette\Forms\IControl
-
Nette\Forms\Controls\Button
-
Nette\Forms\Controls\SubmitButton
implements
Nette\Forms\ISubmitterControl
Methods summary
public
|
|
public
|
|
public
boolean
|
#
isSubmittedBy( )
Tells if the form was submitted by this button.
Tells if the form was submitted by this button.
Returns
boolean
|
public
Nette\Forms\Controls\SubmitButton
|
#
setValidationScope( $scope = NULL )
Sets the validation scope. Clicking the button validates only the controls
within the specified scope.
Sets the validation scope. Clicking the button validates only the controls
within the specified scope.
Returns
|
public
array|null
|
#
getValidationScope( )
Gets the validation scope.
Gets the validation scope.
Returns
array|null
Implementation of
|
public
|
|
public
Nette\Utils\Html
|
#
getControl( string $caption = NULL )
Generates control's HTML element.
Generates control's HTML element.
Parameters
Returns
Overrides
|
Methods inherited from Nette\Forms\Controls\BaseControl
addCondition(),
addConditionOn(),
addError(),
addRule(),
attached(),
cleanErrors(),
exportRules(),
getControlPrototype(),
getError(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getHttpData(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
getValue(),
hasErrors(),
isDisabled(),
isOmitted(),
isRequired(),
setAttribute(),
setDefaultValue(),
setDisabled(),
setHtmlId(),
setOmitted(),
setOption(),
setRequired(),
setTranslator(),
setValue(),
translate(),
validate()
|
Methods inherited from Nette\ComponentModel\Component
__clone(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor(),
validateParent()
|
Properties summary
public
array
|
$onClick
|
|
#
of function (SubmitButton $sender); Occurs when the button is clicked and
form is successfully validated
of function (SubmitButton $sender); Occurs when the button is clicked and
form is successfully validated
|
public
array
|
$onInvalidClick
|
|
#
of function (SubmitButton $sender); Occurs when the button is clicked and
form is not validated
of function (SubmitButton $sender); Occurs when the button is clicked and
form is not validated
|
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control,
$controlPrototype,
$defaultValue,
$disabled,
$errors,
$filled,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$omitted,
$options,
$required,
$rules,
$translator,
$value
|