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
파일 보기 프로젝트 열기: pradosoft/prado

보호된 프로퍼티들

프로퍼티 타입 설명
$_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