public function select2($name, $optionsArray, $selected, $options = [], $label = null, $placeholder = null) { // Set up the attributes $options = $this->verifyAttributes('select2', $options); $multiple = in_array('multiple', $options); // Create the default input $input = parent::select($name, $optionsArray, $selected, $options); // Add the jquery $this->setSelect2Requirements($options['id'], $placeholder, $multiple); return $this->createOutput($name, $label, $input); }
public function select($name, $list = [], $selected = null, $options = [], $label = null) { // Set up the attributes $options = $this->verifyAttributes('select', $options); // Create the default input $input = parent::select($name, $list, $selected, $options); return $this->createOutput($name, $label, $input); }
public function select($name, $list = [], $selected = null, $options = [], $label = null) { $this->setSelectRequirements(); // Create the default input $input = parent::select($name, $list, $selected, $options); return $this->createOutput($name, $label, $input); }