Class NSubmitButton
Submittable button control.
-
NObject
-
NComponent
implements
IComponent
-
NFormControl
implements
IFormControl
-
NButton
-
NSubmitButton
implements
ISubmitterControl
Methods summary
public
|
|
public
NSubmitButton
|
#
setValue( boolean $value )
Sets 'pressed' indicator.
Sets 'pressed' indicator.
Parameters
Returns
Overrides
Implementation of
|
public
boolean
|
#
isSubmittedBy( )
Tells if the form was submitted by this button.
Tells if the form was submitted by this button.
Returns
boolean
Implementation of
|
public
NSubmitButton
|
#
setValidationScope( mixed $scope )
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.
Parameters
Returns
|
public
mixed
|
#
getValidationScope( )
Gets the validation scope.
Gets the validation scope.
Returns
mixed
Implementation of
|
public
|
|
Methods inherited from NFormControl
addCondition(),
addConditionOn(),
addError(),
addRule(),
attached(),
cleanErrors(),
exportRules(),
getControlPrototype(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
getValue(),
hasErrors(),
isDisabled(),
isFilled(),
isRequired(),
loadHttpData(),
setAttribute(),
setDefaultValue(),
setDisabled(),
setHtmlId(),
setOption(),
setRequired(),
setTranslator(),
translate()
|
Methods inherited from NComponent
__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 NFormControl
$control,
$controlPrototype,
$defaultValue,
$disabled,
$errors,
$filled,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$options,
$required,
$rules,
$translator,
$value
|