Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private initDataItems() {
this.tagItems = new ObservableArray();
for (let i = 0; i < this.tags.length; i++) {
this.tagItems.push(new TokenModel(this.tags[i], undefined));
}
}
private initDataItems() {
this.tagItems = new ObservableArray();
for (let i = 0; i < this.tagsAutoComplete.length; i++) {
this.tagItems.push(new TokenModel(this.tagsAutoComplete[i], undefined));
}
}
private initDataItems() {
this.tagItems = new ObservableArray();
for (let i = 0; i < this.tags.length; i++) {
this.tagItems.push(new TokenModel(this.tags[i], undefined));
}
}
private loadView(viewType: string): View {
if (viewType != AutoCompleteViewType.ItemView)
return null;
let suggestionView = this.nativeView.suggestionView
if (!suggestionView || !suggestionView.__SvelteNativeElement__) return;
let componentClass = (suggestionView.__SvelteNativeElement__ as SuggestionViewElement).itemTemplateComponent;
if (!componentClass) return null;
logger.debug("creating view for " + viewType);
let wrapper = createElement('StackLayout') as NativeViewElementNode
"itemViewLoader": PropType.Value,
"layoutMode": PropType.Value,
"loadSuggestionsAsync": PropType.Value,
"minimumCharactersToSearch": PropType.Value,
"noResultsText": PropType.Value,
"readOnly": PropType.Value,
"selectedTokens": PropType.Value,
"showCloseButton": PropType.Value,
"suggestMode": PropType.Value,
"suggestionView": PropType.Value,
"text": PropType.Value,
"items": PropType.Value,
"hint": PropType.Value
});
this.nativeElement.itemViewLoader = (viewType: string) => this.loadView(viewType)
this.nativeView.on(RadAutoCompleteTextView.itemLoadingEvent, (args) => { this.updateListItem(args as AutocompleteItemEventData) });
}