Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Classes

  • BaseControl
  • Button
  • Checkbox
  • CheckboxList
  • ChoiceControl
  • CsrfProtection
  • HiddenField
  • ImageButton
  • MultiChoiceControl
  • 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
# loadHttpData( )

Loads HTTP data.

Loads HTTP data.

Overrides

Nette\Forms\Controls\BaseControl::loadHttpData()
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

Nette\Forms\Controls\SubmitButton
public array|null
# getValidationScope( )

Gets the validation scope.

Gets the validation scope.

Returns

array|null

Implementation of

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

Fires click event.

Fires click event.

public Nette\Utils\Html
# getControl( string $caption = NULL )

Generates control's HTML element.

Generates control's HTML element.

Parameters

$caption
string

Returns

Nette\Utils\Html

Overrides

Nette\Forms\Controls\Button::getControl()
Methods inherited from Nette\Forms\Controls\Button
getLabel(), isFilled()
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()
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 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

Properties inherited from Nette\Forms\Controls\BaseControl
$caption, $control, $disabled, $idMask, $label, $value
Magic properties summary
public read-only boolean $submittedBy
#
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
Magic properties inherited from Nette\ComponentModel\Component
$name, $parent
Magic properties inherited from Nette\Object
$reflection
Nette 2.2 API documentation generated by ApiGen 2.8.0