namespace Nette\Forms
Class SubmitButton
Submittable button control.
- Nette\Object
-
Nette\Component implements Nette\IComponent
-
Nette\Forms\FormControl implements IFormControl
-
Nette\Forms\Button
-
Nette\Forms\SubmitButton implements ISubmitterControl
Direct Known Subclasses
ImageButton
public
|
#
__construct(
string
$caption = NULL
)
Parameters$caption string caption |
public
SubmitButton
|
#
setValue(
bool
$value
)
Sets ‚pressed‘ indicator. Sets ‚pressed‘ indicator. Parameters$value boolReturnsSubmitButton provides a fluent interface
Implementation of |
public
bool
|
#
isSubmittedBy(
)
Tells if the form was submitted by this button. |
public
SubmitButton
|
#
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$scope mixedReturnsSubmitButton provides a fluent interface
|
final public
mixed
|
#
getValidationScope(
)
Gets the validation scope. |
public
void
|
#
click(
)
Fires click event. Fires click event. |
public static
bool
|
#
validateSubmitted(
ISubmitterControl
$control
)
Submitted validator: has been button pressed? Submitted validator: has been button pressed? Parameters$control ISubmitterControl |
Methods Inherited From Button
Methods Inherited From FormControl
__construct(), attached(), getForm(), getHtmlName(), setHtmlId(), getHtmlId(), setAttribute(), setOption(), getOption(), getOptions(), setTranslator(), getTranslator(), translate(), setValue(), getValue(), isFilled(), setDefaultValue(), loadHttpData(), setDisabled(), isDisabled(), getControl(), getLabel(), getControlPrototype(), getLabelPrototype(), addRule(), addCondition(), addConditionOn(), getRules(), setRequired(), isRequired(), validateEqual(), validateFilled(), validateValid(), addError(), getErrors(), hasErrors(), cleanErrors()
Methods Inherited From Nette\Component
__construct(), lookup(), lookupPath(), monitor(), unmonitor(), attached(), detached(), getName(), getParent(), validateParent(), __clone(), __wakeup()
Methods Inherited From Nette\Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
Constants Inherited From Nette\Component
NAME_SEPARATOR
array
|
$onClick | NULL |
of function(SubmitButton $sender); Occurs when the button is clicked and form is successfully validated # |
array
|
$onInvalidClick | NULL |
of function(SubmitButton $sender); Occurs when the button is clicked and form is not validated # |
Properties Inherited From FormControl
$idMask, $caption, $value, $control, $label