Skip to content
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

Input - add getting autocomplete items with ajax - requestor dugi007 #1682

Closed
olton opened this issue Nov 23, 2020 · 3 comments
Closed

Input - add getting autocomplete items with ajax - requestor dugi007 #1682

olton opened this issue Nov 23, 2020 · 3 comments

Comments

@olton
Copy link
Owner

olton commented Nov 23, 2020

Add remote source JSON/SERVER query for auto-complete. Merged results from local and remote data.

@xscode-auto-reply
Copy link

Thanks for opening a new issue. The author has been notified and will review it as soon as possible.
For urgent issues and priority support, visit https://xscode.com/olton/Metro-UI-CSS or Patreon

@olton
Copy link
Owner Author

olton commented Nov 23, 2020

@dugi007. Thank you for your purpose. This feature added in 4.4.3

@olton
Copy link
Owner Author

olton commented Nov 23, 2020

  1. Autocomplete items create when a component creating
  2. Support ajax method, array part, plain text

Additional config options:

autocompleteUrl: null,
autocompleteUrlMethod: "GET",
autocompleteUrlKey: null,

Example of usage:

<input type="text" data-role="input" data-autocomplete="Ukraine, USA, Canada, Marokko, Singapur">
<input type="text" data-role="input" data-autocomplete-url="../data/autocomplete.json">
<input type="text" data-role="input" data-autocomplete-url="../data/autocomplete.txt">

Working example on codepen.io: https://codepen.io/olton/pen/OJXKpgo?editors=1000

@olton olton added this to the 4.4.3 milestone Nov 23, 2020
@olton olton changed the title Input - add getting autocomplete items with ajax - Requestor dugi007 Input - add getting autocomplete items with ajax - requestor dugi007 Nov 23, 2020
@olton olton closed this as completed Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant