Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/externals/javelin/lib/control/tokenizer/Tokenizer.js
Show All 40 Lines | events : [ | ||||
* Emitted when the value of the tokenizer changes, similar to an 'onchange' | * Emitted when the value of the tokenizer changes, similar to an 'onchange' | ||||
* from a <select />. | * from a <select />. | ||||
*/ | */ | ||||
'change'], | 'change'], | ||||
properties : { | properties : { | ||||
limit : null, | limit : null, | ||||
renderTokenCallback : null, | renderTokenCallback : null, | ||||
browseURI: null | browseURI: null, | ||||
disabled: false | |||||
}, | }, | ||||
members : { | members : { | ||||
_containerNode : null, | _containerNode : null, | ||||
_root : null, | _root : null, | ||||
_frame: null, | _frame: null, | ||||
_focus : null, | _focus : null, | ||||
_orig : null, | _orig : null, | ||||
_typeahead : null, | _typeahead : null, | ||||
_tokenid : 0, | _tokenid : 0, | ||||
_tokens : null, | _tokens : null, | ||||
_tokenMap : null, | _tokenMap : null, | ||||
_initialValue : null, | _initialValue : null, | ||||
_seq : 0, | _seq : 0, | ||||
_lastvalue : null, | _lastvalue : null, | ||||
_placeholder : null, | _placeholder : null, | ||||
start : function() { | start : function() { | ||||
if (this.getDisabled()) { | |||||
JX.DOM.alterClass(this._containerNode, 'disabled-control', true); | |||||
return; | |||||
} | |||||
if (__DEV__) { | if (__DEV__) { | ||||
if (!this._typeahead) { | if (!this._typeahead) { | ||||
throw new Error( | throw new Error( | ||||
'JX.Tokenizer.start(): ' + | 'JX.Tokenizer.start(): ' + | ||||
'No typeahead configured! Use setTypeahead() to provide a ' + | 'No typeahead configured! Use setTypeahead() to provide a ' + | ||||
'typeahead.'); | 'typeahead.'); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 448 Lines • Show Last 20 Lines |