Class \Prado\Web\UI\WebControls\THiddenField
THiddenField displays a hidden input field on a Web page. The value of the input field can be accessed via \Prado\Web\UI\WebControls\getValue property. If upon postback the value is changed, a \Prado\Web\UI\WebControls\onValueChanged event will be raised.
Class hierarchy
- \Prado\Web\UI\WebControls\THiddenField implements IPostBackDataHandler, IValidatable, IDataRenderer
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
|
focus() : mixed
Sets focus to this control.
This method overrides the parent implementation by forbidding setting focus to this control. |
public
|
getData() : string
Returns the value of the hidden field.
This method is required by IDataRenderer. It is the same as getValue(). |
public
|
getDataChanged() : bool
Returns a value indicating whether postback has caused the control data change.
This method is required by the \Prado\Web\UI\IPostBackDataHandler interface. |
public
|
|
public
|
|
public
|
getValidationPropertyValue() : string
Returns the value to be validated.
This methid is required by \Prado\Web\UI\IValidatable interface. |
public
|
|
public
|
loadPostData(string $key, array<string|int, mixed> $values) : bool
Loads hidden field data.
This method is primarly used by framework developers. |
public
|
onValueChanged(TEventParameter $param) : mixed
This method is invoked when the value of the {@see getValue Value} property changes between posts to the server.
The method raises 'OnValueChanged' event to fire up the event delegates. If you override this method, be sure to call the parent implementation so that the attached event handlers can be invoked. |
public
|
raisePostDataChangedEvent() : mixed
Raises postdata changed event.
This method calls onValueChanged method. This method is primarly used by framework developers. |
public
|
render(THtmlWriter $writer) : mixed
Renders the control.
This method overrides the parent implementation by rendering the hidden field input element. |
public
|
setData(string $value) : mixed
Sets the value of the hidden field.
This method is required by IDataRenderer. It is the same as setValue(). |
public
|
|
public
|
|
public
|
|
public
|
|
protected
|