Class \Prado\Web\UI\JuiControls\TJuiSortable
TJuiSortable class.
TJuiSortable is an extension to TActivePanel based on jQuery-UI's Sortable interaction. The panel 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 sortered dragging and dropping them.
<com:TJuiSortable ID="repeater1" />
$this->repeater1->DataSource=array('home', 'office', 'car', 'boat', 'plane');
$this->repeater1->dataBind();
Class hierarchy
- \Prado\Web\UI\JuiControls\TJuiSortable 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
|
dataBind() : mixed
Overrides parent implementation. Callback {@see renderSortables()} when
page's IsCallback property is true.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
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
|