Maniphest wireframes
Summary: Test Plan: Reviewers: CC:
This commit is contained in:
@@ -20,6 +20,7 @@ class AphrontFormTokenizerControl extends AphrontFormControl {
|
||||
|
||||
private $datasource;
|
||||
private $disableBehavior;
|
||||
private $limit;
|
||||
|
||||
public function setDatasource($datasource) {
|
||||
$this->datasource = $datasource;
|
||||
@@ -35,6 +36,11 @@ class AphrontFormTokenizerControl extends AphrontFormControl {
|
||||
return 'aphront-form-control-tokenizer';
|
||||
}
|
||||
|
||||
public function setLimit($limit) {
|
||||
$this->limit = $limit;
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function renderInput() {
|
||||
require_celerity_resource('aphront-tokenizer-control-css');
|
||||
require_celerity_resource('javelin-typeahead-dev');
|
||||
@@ -70,6 +76,7 @@ class AphrontFormTokenizerControl extends AphrontFormControl {
|
||||
'id' => $id,
|
||||
'src' => $this->datasource,
|
||||
'value' => $values,
|
||||
'limit' => $this->limit,
|
||||
));
|
||||
}
|
||||
|
||||
@@ -88,7 +95,6 @@ class AphrontFormTokenizerControl extends AphrontFormControl {
|
||||
array(
|
||||
'type' => 'text',
|
||||
'name' => $this->getName(),
|
||||
'value' => $this->getValue(),
|
||||
'disabled' => $this->getDisabled() ? 'disabled' : null,
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user