File "TextMultiAutoComplete.php"
Full Path: /home2/sdektunc/cepali.edu.mx/wp-content/plugins/smart-slider-3/Nextend/Framework/Form/Element/Text/TextMultiAutoComplete.php
File size: 861 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Nextend\Framework\Form\Element\Text;
use Nextend\Framework\Asset\Js\Js;
use Nextend\Framework\Form\Element\Text;
use Nextend\Framework\View\Html;
class TextMultiAutoComplete extends Text {
protected $options = array();
protected $class = 'n2_field_autocomplete ';
protected function addScript() {
Js::addInline('new _N2.FormElementAutocomplete("' . $this->fieldID . '", ' . json_encode($this->options) . ');');
}
protected function post() {
return Html::tag('a', array(
'href' => '#',
'class' => 'n2_field_text__clear',
'tabindex' => -1
), Html::tag('i', array('class' => 'ssi_16 ssi_16--circularremove'), ''));
}
/**
* @param array $options
*/
public function setOptions($options) {
$this->options = $options;
}
}