Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • BaseControl
  • Button
  • Checkbox
  • HiddenField
  • ImageButton
  • MultiSelectBox
  • RadioList
  • SelectBox
  • SubmitButton
  • TextArea
  • TextBase
  • TextInput
  • UploadControl
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class SubmitButton

Submittable button control.

Nette\Object
Extended by Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent
Extended by Nette\Forms\Controls\BaseControl implements Nette\Forms\IControl
Extended by Nette\Forms\Controls\Button
Extended by Nette\Forms\Controls\SubmitButton implements Nette\Forms\ISubmitterControl

Direct known subclasses

Nette\Forms\Controls\ImageButton
Namespace: Nette\Forms\Controls
Author: David Grudl
Located at Forms/Controls/SubmitButton.php
Methods summary
public
# __construct( string $caption = NULL )

Parameters

$caption
string
caption

Overrides

Nette\Forms\Controls\Button::__construct()
public Nette\Forms\Controls\SubmitButton
# setValue( boolean $value )

Sets 'pressed' indicator.

Sets 'pressed' indicator.

Parameters

$value
boolean

Returns

Nette\Forms\Controls\SubmitButton

Overrides

Nette\Forms\Controls\BaseControl::setValue()

Implementation of

Nette\Forms\IControl::setValue()
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

Nette\Forms\ISubmitterControl::isSubmittedBy()
public Nette\Forms\Controls\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
mixed

Returns

Nette\Forms\Controls\SubmitButton
public mixed
# getValidationScope( )

Gets the validation scope.

Gets the validation scope.

Returns

mixed

Implementation of

Nette\Forms\ISubmitterControl::getValidationScope()
public
# click( )

Fires click event.

Fires click event.

Methods inherited from Nette\Forms\Controls\Button
getControl(), getLabel()
Methods inherited from Nette\Forms\Controls\BaseControl
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 Nette\ComponentModel\Component
__clone(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), unmonitor(), validateParent()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Methods inherited from Nette\ComponentModel\IComponent
setParent()
Constants inherited from Nette\ComponentModel\IComponent
NAME_SEPARATOR
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

Properties inherited from Nette\Forms\Controls\BaseControl
$caption, $control, $idMask, $label, $value
Magic properties summary
public mixed $validationScope
#
public read-only boolean $submittedBy
#
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control, $controlPrototype, $defaultValue, $disabled, $errors, $filled, $form, $htmlId, $htmlName, $label, $labelPrototype, $options, $required, $rules, $translator, $value
Magic properties inherited from Nette\ComponentModel\Component
$name, $parent
Magic properties inherited from Nette\Object
$reflection
Nette 2.0 API documentation generated by ApiGen 2.8.0