Horde_Core_Ajax_Imple_AutoCompleter_Ajax::__construct PHP Method

__construct() public method

public __construct ( array $params = [] )
$params array Configuration options: - autoSelect: TODO - frequency: (integer) TODO - indicator: (string) TODO - minChars: (integer) Minimum # of characters before search is made. - onSelect: (string) Javascript code to run on select. - onShow: (string) Javascript code to run on show. - onType: (string) Javascript code to run on type. - filterCallback: (string) Javascript code to run to apply any filtering to results returned by the handler. - paramName: (string) TODO - tokens: (array) Valid token separators.
    public function __construct(array $params = array())
    {
        parent::__construct(array_merge(array('tokens' => array(',', ';')), $params));
    }

Usage Example

Esempio n. 1
0
 /**
  */
 public function __construct(array $params = array())
 {
     global $page_output;
     parent::__construct(array_merge(array('boxClass' => 'hordeACBox impACBox', 'boxClassFocus' => 'impACBoxFocus', 'deleteIcon' => strval(Horde_Themes::img('delete-small.png')), 'displayFilter' => 'new Function("t", "return t.sub(/<[^>]*>$/, \\"\\").strip().escapeHTML()")', 'growingInputClass' => 'hordeACTrigger impACTrigger', 'listClass' => 'hordeACList impACList', 'processValueCallback' => 'ImpComposeBase.autocompleteValue.bind(ImpComposeBase)', 'removeClass' => 'hordeACItemRemove impACItemRemove', 'triggerContainer' => strval(new Horde_Support_Randomid())), $params));
     $this->_raw = array_merge($this->_raw, array('displayFilter', 'filterCallback', 'onAdd', 'onRemove', 'processValueCallback'));
     $page_output->addScriptFile('compose-base.js');
     $page_output->addScriptFile('prettyautocomplete.js');
 }
All Usage Examples Of Horde_Core_Ajax_Imple_AutoCompleter_Ajax::__construct
Horde_Core_Ajax_Imple_AutoCompleter_Ajax