PHP 클래스 Prado\Web\UI\JuiControls\TJuiSelectable

TJuiSelectable is an extension to {@link TActivePanel} based on jQuery-UI's {@link http://jqueryui.com/selectable/ Selectable} interaction. TJuiSelectable can be feed a {@link setDataSource DataSource} and will interally render a {@link TRepeater} that displays items in an unordered list. Items can be selected by clicking on them, individually or in a group. $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

공개 메소드들

메소드 설명
__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 renderSelectables()} when page's IsCallback property is true.
getOptions ( ) : TJuiControlOptions Object containing defined javascript options
getSelectables ( ) : TRepeater
getValidEvents ( ) : array() Array containing valid javascript events
getValidOptions ( ) : array() Array containing valid javascript options
getWidget ( ) : string
getWidgetID ( ) : string
onCreate ( object $params ) Raises the OnCreate event
onSelected ( object $params ) Raises the OnSelected event
onSelecting ( object $params ) Raises the OnSelecting event
onStart ( object $params ) Raises the OnStart event
onStop ( object $params ) Raises the OnStop event
onUnselected ( object $params ) Raises the OnUnselected event
onUnselecting ( object $params ) Raises the OnUnselecting 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

메소드 상세

__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 Selectables.

dataBind() 공개 메소드

Overrides parent implementation. Callback {@link renderSelectables()} 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.

getSelectables() 공개 메소드

public getSelectables ( ) : 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

onCreate() 공개 메소드

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

onSelected() 공개 메소드

Raises the OnSelected event
public onSelected ( object $params )
$params object event parameters

onSelecting() 공개 메소드

Raises the OnSelecting event
public onSelecting ( object $params )
$params object event parameters

onStart() 공개 메소드

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

onStop() 공개 메소드

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

onUnselected() 공개 메소드

Raises the OnUnselected event
public onUnselected ( object $params )
$params object event parameters

onUnselecting() 공개 메소드

Raises the OnUnselecting event
public onUnselecting ( 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