77 $this->autocomplete =
false;
84 if ($css) $this->browseCss = jsSafe($css);
90 if ($this->parent->readOnlyForm || $this->parent->isReadOnly(
$field)
91 || array_key_exists(
$field, $this->parent->hidden))
return "";
93 $browse = $this->browse ?
"true":
"false";
95 $searchOptions =
"{'search': '{$this->handler}', minimumLength: {$this->minimumLength}, 'cssClass': '{$this->cssClass}', 'width': '{$this->scrollBoxWidth}', 'parameter': '{$field}', 'browse': {$browse}, 'browseText': '{$this->browseText}', 'browseCssClass': '{$this->browseCss}'}";
97 echo
"<script type='text/javascript'>\n";
98 echo
"var {$field}_progressiveSearch;\n";
99 echo
"window.addEvent('domready', function()\n";
101 echo
"\t{$field}_progressiveSearch = new ProgressiveSearch('{$this->parent->id}_{$field}', {$searchOptions});\n";
static usingFeature()
Uses the specified framework feature(s).
$handler
path to the action handler that retrieves and displays results
$scrollBoxWidth
width of progressive search results
allowBrowse($text="", $css="")
ProgressiveSearchFieldRenderer(&$parent, $field, $label="", $handler)
$cssClass
class for the progressive search results
$minimumLength
minimum number of characters user must enter before search is called
$size
size of the input field for entering search string