Class \Prado\Web\UI\WebControls\TCheckBoxList
TCheckBoxList displays a list of checkboxes on a Web page.
The layout of the checkbox list is specified via \Prado\Web\UI\WebControls\setRepeatLayout, which can be either 'Table' (default) or 'Flow'. A table layout uses HTML table cells to organize the checkboxes while a flow layout uses line breaks to organize the checkboxes. When the layout is using 'Table', \Prado\Web\UI\WebControls\setCellPadding and \Prado\Web\UI\WebControls\setCellSpacing can be used to adjust the cellpadding and cellpadding of the table.
The number of columns used to display the checkboxes is specified via \Prado\Web\UI\WebControls\setRepeatColumns property, while the \Prado\Web\UI\WebControls\setRepeatDirection governs the order of the items being rendered.
The alignment of the text besides each checkbox can be specified via \Prado\Web\UI\WebControls\setTextAlign.
Class hierarchy
- \Prado\Web\UI\WebControls\TCheckBoxList implements IRepeatInfoUser, INamingContainer, IPostBackDataHandler, IValidatable
- \Prado\Web\UI\WebControls\TListControl implements IDataRenderer
- \Prado\Web\UI\WebControls\TDataBoundControl
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
|
__construct() : mixed
Constructor.
Remember to call parent implementation if you override this method |
public
|
findControl(string $id[, bool $real = false ]) : TControl
Finds a control by ID.
This method overrides the parent implementation so that it always returns the checkbox list itself (because the checkbox list does not have child controls.) |
public
|
generateItemStyle(string $itemType, int $index) : null
Returns a style used for rendering items.
This method is required by IRepeatInfoUser interface. |
public
deprecated
|
|
public
deprecated
|
|
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
|
getHasFooter() : bool
Returns a value indicating whether this control contains footer item.
This method is required by IRepeatInfoUser interface. |
public
|
getHasHeader() : bool
Returns a value indicating whether this control contains header item.
This method is required by IRepeatInfoUser interface. |
public
|
getHasSeparators() : bool
Returns a value indicating whether this control contains separator items.
This method is required by IRepeatInfoUser interface. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
getValidationPropertyValue() : mixed
Returns the value to be validated.
This methid is required by \Prado\Web\UI\IValidatable interface. |
public
|
loadPostData(string $key, array<string|int, mixed> $values) : bool
Loads user input data.
This method is primarly used by framework developers. |
public
|
onPreRender(mixed $param) : mixed
Registers for post data on postback.
This method overrides the parent implementation. |
public
|
raisePostDataChangedEvent() : mixed
Raises postdata changed event.
This method is required by IPostBackDataHandler interface. It is invoked by the framework when \Prado\Web\UI\WebControls\getSelectedIndices property is changed on postback. This method is primarly used by framework developers. |
public
|
render(THtmlWriter $writer) : mixed
Renders the checkbox list control.
This method overrides the parent implementation. |
public
|
renderItem(THtmlWriter $writer, TRepeatInfo $repeatInfo, string $itemType, int $index) : mixed
Renders an item in the list.
This method is required by IRepeatInfoUser interface. |
public
deprecated
|
|
public
deprecated
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
protected
|
createStyle() : TStyle
Creates a style object for the control.
This method creates a TTableStyle to be used by checkbox list. |
protected
|
getClientClassName() : string
Gets the name of the javascript class responsible for performing postback for this control.
This method overrides the parent implementation. |
protected
|
|
protected
|
|
protected
|
|
protected
|