Telerik 如何在nativescript中设置radautocomplete的初始值?
以下是我正在做的: 模板:Telerik 如何在nativescript中设置radautocomplete的初始值?,telerik,nativescript,nativescript-vue,Telerik,Nativescript,Nativescript Vue,以下是我正在做的: 模板: <RadAutoCompleteTextView class="autocomplete" :items="regions" loaded="onLoaded" completionMode="Contains" @textChanged="textChanged" returnKeyType="done" /> onLoa
<RadAutoCompleteTextView
class="autocomplete"
:items="regions"
loaded="onLoaded"
completionMode="Contains"
@textChanged="textChanged"
returnKeyType="done"
/>
onLoaded() {
this.$refs.autocomplete.addToken(
new TokenModel(this.$store.state.profile.region),
);
},
但它不起作用,因为在中,我没有得到任何预选的区域值。
我使用的是nativescript vue,如何获得自动完成的预选值?我认为您应该向加载的
添加@
,因为这是一个事件。onload
功能应该可以正常工作,因为它可以正确地添加新令牌