PHP Class Prado\Web\UI\WebControls\TListItem
TListItem represents an item in a list control. Each item has a {@link setText Text}
property and a {@link setValue Value} property. If either one of them is not set,
it will take the value of the other property.
An item can be {@link setSelected Selected} or {@link setEnabled Enabled},
and it can have additional {@link getAttributes Attributes} which may be rendered
if the list control supports so.
Show file
Open project: pradosoft/prado
Class Usage Examples
Public Methods
Protected Methods
Method |
Description |
|
_getZappableSleepProps ( &$exprops ) |
Returns an array with the names of all variables of this object that should NOT be serialized
because their value is the default one or useless to be cached for the next page loads. |
|
Method Details
__construct()
public method
public __construct ( $text = '', $value = '', $enabled = true, $selected = false ) |
_getZappableSleepProps()
protected method
Reimplement in derived classes to add new variables, but remember to also to call the parent
implementation first.
getAttribute()
public method
getAttributes()
public method
public getAttributes ( ) : TAttributeCollection |
return |
Prado\Collections\TAttributeCollection |
custom attributes |
getEnabled()
public method
getHasAttributes()
public method
getSelected()
public method
hasAttribute()
public method
removeAttribute()
public method
Removes the named attribute.
setAttribute()
public method
setEnabled()
public method
setSelected()
public method