protected getPostBackOptions ( ) : array | ||
return | array | list of callback options. |
protected function getPostBackOptions()
{
$options = $this->getOptions()->toArray();
// overload the "OnStop" event to add information about the current selected items
if (isset($options['stop'])) {
$options['stop'] = new TJavaScriptLiteral('function( event, ui ) { ui.index = new Array(); jQuery(\'#' . $this->getClientID() . ' .ui-selected\').each(function(idx, item){ ui.index.push(item.id) }); Prado.JuiCallback(' . TJavaScript::encode($this->getUniqueID()) . ', \'stop\', event, ui, this); }');
}
return $options;
}