Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/phuix/PHUIXAutocomplete.js
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | _activate: function(code) { | ||||
var datasource = new JX.TypeaheadOnDemandSource(spec.datasourceURI); | var datasource = new JX.TypeaheadOnDemandSource(spec.datasourceURI); | ||||
datasource.listen( | datasource.listen( | ||||
'resultsready', | 'resultsready', | ||||
JX.bind(this, this._onresults, code)); | JX.bind(this, this._onresults, code)); | ||||
datasource.setTransformer(JX.bind(this, this._transformresult)); | datasource.setTransformer(JX.bind(this, this._transformresult)); | ||||
datasource.setSortHandler( | datasource.setSortHandler( | ||||
JX.bind(datasource, JX.Prefab.sortHandler, {})); | JX.bind(datasource, JX.Prefab.sortHandler, {})); | ||||
datasource.setFilterHandler(JX.Prefab.filterClosedResults); | |||||
this._datasources[code] = datasource; | this._datasources[code] = datasource; | ||||
} | } | ||||
this._datasource = this._datasources[code]; | this._datasource = this._datasources[code]; | ||||
this._active = code; | this._active = code; | ||||
var head_icon = new JX.PHUIXIconView() | var head_icon = new JX.PHUIXIconView() | ||||
▲ Show 20 Lines • Show All 572 Lines • Show Last 20 Lines |