Class \Prado\Web\UI\JuiControls\TJuiSelectable
TJuiSelectable class.
TJuiSelectable is an extension to TActivePanel based on jQuery-UI's Selectable interaction. TJuiSelectable can be feed a \Prado\Web\UI\JuiControls\setDataSource and will interally render a TRepeater that displays items in an unordered list. Items can be selected by clicking on them, individually or in a group.
<style>
.ui-selecting { background: #FECA40; }
.ui-selected { background: #F39814; color: white; }
</style>
<com:TJuiSelectable ID="repeater1" />
$this->repeater1->DataSource=array('home', 'office', 'car', 'boat', 'plane');
$this->repeater1->dataBind();
Class hierarchy
- \Prado\Web\UI\JuiControls\TJuiSelectable implements IJuiOptions, ICallbackEventHandler
- \Prado\Web\UI\ActiveControls\TActivePanel implements IActiveControl
- \Prado\Web\UI\WebControls\TPanel
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.3
public
|
__construct() : mixed
Creates a new callback control, sets the adapter to
TActiveControlAdapter. If you override this class, be sure to set the
adapter appropriately by, for example, by calling this constructor.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
raiseCallbackEvent(TCallbackEventParameter $param) : mixed
Raises callback event. This method is required by the {@see \Prado\Web\UI\ActiveControls\ICallbackEventHandler}
interface.
|
public
|
|
protected
|
addAttributesToRender(mixed $writer) : mixed
Ensure that the ID attribute is rendered and registers the javascript code
for initializing the active control.
|
protected
|
|
protected
|