Class SubmitButton
Submittable button control.
-
Nette\ComponentModel\Component
implements
Nette\ComponentModel\IComponent
uses
Nette\SmartObject
-
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 bool
|
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 array|null
Implementation of
|
public
|
|
public
Nette\Utils\Html
|
#
getControl( string|object $caption = null )
Generates control's HTML element.
Generates control's HTML element.
Parameters
Returns
Overrides
|
Methods inherited from Nette\Forms\Controls\BaseControl
__call(),
addCondition(),
addConditionOn(),
addError(),
addRule(),
attached(),
cleanErrors(),
enableAutoOptionalMode(),
extensionMethod(),
getControlPart(),
getControlPrototype(),
getError(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getHttpData(),
getLabelPart(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
getValue(),
hasErrors(),
isDisabled(),
isOmitted(),
isRequired(),
setAttribute(),
setDefaultValue(),
setDisabled(),
setHtmlAttribute(),
setHtmlId(),
setOmitted(),
setOption(),
setRequired(),
setTranslator(),
setValue(),
translate(),
validate()
|
Methods inherited from Nette\ComponentModel\Component
__clone(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
setParent(),
unmonitor(),
validateParent()
|
Properties summary
public
callable[]
|
$onClick
function (SubmitButton $sender); Occurs when the button is clicked and form
is successfully validated
function (SubmitButton $sender); Occurs when the button is clicked and form
is successfully validated
|
|
public
callable[]
|
$onInvalidClick
function (SubmitButton $sender); Occurs when the button is clicked and form
is not validated
function (SubmitButton $sender); Occurs when the button is clicked and form
is not validated
|
|
Magic properties summary
public read-only
boolean
|
$submittedBy
|
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control,
$controlPrototype,
$disabled,
$error,
$errors,
$filled,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$omitted,
$options,
$required,
$value
|