PHP Класс Prado\Web\UI\JuiControls\TJuiSortable

TJuiSortable is an extension to {@link TActivePanel} based on jQuery-UI's {@link http://jqueryui.com/sortable/ Sortable} interaction. The panel can be feed a {@link setDataSource DataSource} and will interally render a {@link TRepeater} that displays items in an unordered list. Items can be sortered dragging and dropping them. $this->repeater1->DataSource=array('home', 'office', 'car', 'boat', 'plane'); $this->repeater1->dataBind();
С версии: 3.3
Наследование: extends Prado\Web\UI\ActiveControls\TActivePanel, implements Prado\Web\UI\JuiControls\IJuiOptions, implements Prado\Web\UI\ActiveControls\ICallbackEventHandler
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_options

Открытые методы

Метод Описание
OnStop ( object $params ) Raises the OnStop event
__construct ( ) 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.
dataBind ( ) Overrides parent implementation. Callback {@link renderSortables()} when page's IsCallback property is true.
getOptions ( ) : TJuiControlOptions Object containing defined javascript options
getSortables ( ) : TRepeater
getValidEvents ( ) : array() Array containing valid javascript events
getValidOptions ( ) : array() Array containing valid javascript options
getWidget ( ) : string
getWidgetID ( ) : string
onActivate ( object $params ) Raises the OnActivate event
onBeforeStop ( object $params ) Raises the OnBeforeStop event
onChange ( object $params ) Raises the OnChange event
onCreate ( object $params ) Raises the OnCreate event
onDeactivate ( object $params ) Raises the OnDeactivate event
onOut ( object $params ) Raises the OnOut event
onOver ( object $params ) Raises the OnOver event
onReceive ( object $params ) Raises the OnReceive event
onRemove ( object $params ) Raises the OnRemove event
onSort ( object $params ) Raises the OnSort event
onStart ( object $params ) Raises the OnStart event
onUpdate ( object $params ) Raises the OnUpdate event
raiseCallbackEvent ( $param ) Raises callback event. This method is required by the {@link ICallbackEventHandler} interface.
setDataSource ( $data )

Защищенные методы

Метод Описание
addAttributesToRender ( $writer ) Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control.
createRepeater ( ) : TRepeater
getPostBackOptions ( ) : array

Описание методов

OnStop() публичный Метод

Raises the OnStop event
public OnStop ( object $params )
$params object event parameters

__construct() публичный Метод

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 __construct ( )

addAttributesToRender() защищенный Метод

Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control.
protected addAttributesToRender ( $writer )

createRepeater() защищенный Метод

protected createRepeater ( ) : TRepeater
Результат Prado\Web\UI\WebControls\TRepeater new instance of TRepater to render the list of Sortables.

dataBind() публичный Метод

Overrides parent implementation. Callback {@link renderSortables()} when page's IsCallback property is true.
public dataBind ( )

getOptions() публичный Метод

Object containing defined javascript options
public getOptions ( ) : TJuiControlOptions
Результат TJuiControlOptions

getPostBackOptions() защищенный Метод

protected getPostBackOptions ( ) : array
Результат array list of callback options.

getSortables() публичный Метод

public getSortables ( ) : TRepeater
Результат Prado\Web\UI\WebControls\TRepeater suggestion list repeater

getValidEvents() публичный Метод

Array containing valid javascript events
public getValidEvents ( ) : array()
Результат array()

getValidOptions() публичный Метод

Array containing valid javascript options
public getValidOptions ( ) : array()
Результат array()

getWidget() публичный Метод

public getWidget ( ) : string
Результат string the name of the jQueryUI widget method

getWidgetID() публичный Метод

public getWidgetID ( ) : string
Результат string the clientid of the jQueryUI widget element

onActivate() публичный Метод

Raises the OnActivate event
public onActivate ( object $params )
$params object event parameters

onBeforeStop() публичный Метод

Raises the OnBeforeStop event
public onBeforeStop ( object $params )
$params object event parameters

onChange() публичный Метод

Raises the OnChange event
public onChange ( object $params )
$params object event parameters

onCreate() публичный Метод

Raises the OnCreate event
public onCreate ( object $params )
$params object event parameters

onDeactivate() публичный Метод

Raises the OnDeactivate event
public onDeactivate ( object $params )
$params object event parameters

onOut() публичный Метод

Raises the OnOut event
public onOut ( object $params )
$params object event parameters

onOver() публичный Метод

Raises the OnOver event
public onOver ( object $params )
$params object event parameters

onReceive() публичный Метод

Raises the OnReceive event
public onReceive ( object $params )
$params object event parameters

onRemove() публичный Метод

Raises the OnRemove event
public onRemove ( object $params )
$params object event parameters

onSort() публичный Метод

Raises the OnSort event
public onSort ( object $params )
$params object event parameters

onStart() публичный Метод

Raises the OnStart event
public onStart ( object $params )
$params object event parameters

onUpdate() публичный Метод

Raises the OnUpdate event
public onUpdate ( object $params )
$params object event parameters

raiseCallbackEvent() публичный Метод

Raises callback event. This method is required by the {@link ICallbackEventHandler} interface.
public raiseCallbackEvent ( $param )

setDataSource() публичный Метод

public setDataSource ( $data )

Описание свойств

$_options защищенное свойство

protected $_options