{NS}-Vue 中的 RadAutocomplete 问题
RadAutocomplete issue in {NS}-Vue
我正在尝试在我的应用程序中添加 RadAutocomplete,但无法填充该组件;我关注了 tuts,但在其中输入内容总是导致 "No results found"。
我猜它未初始化。我的组件代码较长,但我在这里制作了一个较短的游乐场,Nativescript playground。
谁能告诉我我错过了什么?
您的代码在初始版本中有几个问题:
- SuggestionView
在 RadAutoCompleteTextView 之外
- 永远不会初始化 searchItems / 永远不会从任何地方调用 getInitial()
- 你没有使用 TokenModel
等,
你的 updated version fixed most, but you were still having typos on variable name and missing TokenModel
implementation. I have updated 它适合你。
我正在尝试在我的应用程序中添加 RadAutocomplete,但无法填充该组件;我关注了 tuts,但在其中输入内容总是导致 "No results found"。
我猜它未初始化。我的组件代码较长,但我在这里制作了一个较短的游乐场,Nativescript playground。
谁能告诉我我错过了什么?
您的代码在初始版本中有几个问题:
- SuggestionView
在 RadAutoCompleteTextView 之外
- 永远不会初始化 searchItems / 永远不会从任何地方调用 getInitial()
- 你没有使用 TokenModel
等,
你的 updated version fixed most, but you were still having typos on variable name and missing TokenModel
implementation. I have updated 它适合你。