-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is it possible to get members list from remote request ? #16
Comments
@zhang-xiao @4ver what kind of api do you like? like passing a prop <el-autocomplete
class="inline-input"
v-model="state2"
:fetch-suggestions="querySearch"
placeholder="Please Input"
:trigger-on-focus="false"
@select="handleSelect"
></el-autocomplete> |
+1 on this. Couldn't you just get away with throwing an |
@Minasokoni nice idea! Didn't see such a way in other framworks like Element-UI. |
@Minasokoni added npm i -S "git+https://github.com/fritx/vue-at.git#feat/emit-at-build" <at :members="members" @at="handleAt"></at>
<script>
// ...
async handleAt (chunk) {
this.members = await fetchFromRemote(chunk)
}
</script> |
The branch is buggy now, need more time to fix. @Minasokoni |
@fritx no rush 👍 Thanks for the quick responses though |
@Minasokoni you can try the branch now xD, just pushed. |
Hey guys, 2.3.0 is out including this feature: emitting However, it is not documented yet, |
The @at event doesnt work. I was able to change the :member but when I hit enter, the name dont appear on the text field. |
What about your code? Did you bind v-model? @johnenrick |
like giving suggestion items from server side when input @suggestion
The text was updated successfully, but these errors were encountered: