3 final class AphrontTypeaheadTemplateView
extends AphrontView
{
9 public function setID($id) {
14 public function setValue(array $value) {
15 $this->value
= $value;
19 public function getValue() {
23 public function setName($name) {
28 public function getName() {
32 public function render() {
33 require_celerity_resource('aphront-typeahead-control-css');
36 $name = $this->getName();
37 $values = nonempty($this->getValue(), array());
40 foreach ($values as $key => $value) {
41 $tokens[] = $this->renderToken($key, $value);
48 'class' => 'jx-typeahead-input',
49 'sigil' => 'typeahead',
51 'value' => $this->value
,
52 'autocomplete' => 'off',
59 'sigil' => 'typeahead-hardpoint',
60 'class' => 'jx-typeahead-hardpoint',
64 phutil_tag('div', array('style' => 'clear: both'), ''),