PHP Class 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();
Since: 3.3
Inheritance: extends Prado\Web\UI\ActiveControls\TActivePanel, implements Prado\Web\UI\JuiControls\IJuiOptions, implements Prado\Web\UI\ActiveControls\ICallbackEventHandler
Afficher le fichier Open project: pradosoft/prado

Protected Properties

Свойство Type Description
$_options

Méthodes publiques

Méthode Description
__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 )

Méthodes protégées

Méthode Description
addAttributesToRender ( $writer ) Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control.
createRepeater ( ) : TRepeater
getPostBackOptions ( ) : array

Method Details

__construct() public méthode

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() protected méthode

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

createRepeater() protected méthode

protected createRepeater ( ) : TRepeater
Résultat Prado\Web\UI\WebControls\TRepeater new instance of TRepater to render the list of Selectables.

dataBind() public méthode

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

getOptions() public méthode

Object containing defined javascript options
public getOptions ( ) : TJuiControlOptions
Résultat TJuiControlOptions

getPostBackOptions() protected méthode

protected getPostBackOptions ( ) : array
Résultat array list of callback options.

getSelectables() public méthode

public getSelectables ( ) : TRepeater
Résultat Prado\Web\UI\WebControls\TRepeater suggestion list repeater

getValidEvents() public méthode

Array containing valid javascript events
public getValidEvents ( ) : array()
Résultat array()

getValidOptions() public méthode

Array containing valid javascript options
public getValidOptions ( ) : array()
Résultat array()

getWidget() public méthode

public getWidget ( ) : string
Résultat string the name of the jQueryUI widget method

getWidgetID() public méthode

public getWidgetID ( ) : string
Résultat string the clientid of the jQueryUI widget element

onCreate() public méthode

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

onSelected() public méthode

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

onSelecting() public méthode

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

onStart() public méthode

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

onStop() public méthode

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

onUnselected() public méthode

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

onUnselecting() public méthode

Raises the OnUnselecting event
public onUnselecting ( object $params )
$params object event parameters

raiseCallbackEvent() public méthode

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

setDataSource() public méthode

public setDataSource ( $data )

Property Details

$_options protected_oe property

protected $_options