Page MenuHomePhorge

AphrontFormTypeaheadControl.php
No OneTemporary

AphrontFormTypeaheadControl.php

<?php
final class AphrontFormTypeaheadControl extends AphrontFormControl {
private $hardpointID;
private $placeholder;
public function setHardpointID($hardpoint_id) {
$this->hardpointID = $hardpoint_id;
return $this;
}
public function getHardpointID() {
return $this->hardpointID;
}
public function setPlaceholder($placeholder) {
$this->placeholder = $placeholder;
return $this;
}
protected function getCustomControlClass() {
return 'aphront-form-control-typeahead';
}
protected function renderInput() {
return javelin_tag(
'div',
array(
'style' => 'position: relative;',
'id' => $this->getHardpointID(),
),
javelin_tag(
'input',
array(
'type' => 'text',
'name' => $this->getName(),
'value' => $this->getValue(),
'placeholder' => $this->placeholder,
'disabled' => $this->getDisabled() ? 'disabled' : null,
'autocomplete' => 'off',
'id' => $this->getID(),
)));
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 15:51 (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126181
Default Alt Text
AphrontFormTypeaheadControl.php (1 KB)

Event Timeline