I am looking for autocomplete form for MaterializeCss, any plugins for this? i has try to use select2 but that's css not looks good
相关问题
- how to trigger next tab with or <button>
- M is not defined when using Materialize-css with V
- Multiple select element using select2 does not wor
- select2 removes default options when using ajax
- DataTables search on specific columns
相关文章
- How do I correctly capture Materialize-CSS datepic
- jQuery Select2 Tag on Blur
- How to break a line in select2 dropdown?
- Placeholder not working in select2
- Bootstrap4XPages plugin: how to catch a change eve
- Select2 jquery - How to get text in selectbox
- Override Materialize CSS properties
- Materialize scroll tbody
UPDATED 1/09/2016: Autocomplete is already available officially: http://materializecss.com/forms.html#autocomplete
I was looking for exactly the same and I think We have been lucky. They added the autocomplete recently, (not yet in the documentation). But you can see the info here https://github.com/SuperDJ/materialize/commit/3648f74542e41c3b3be4596870b7485f6ebdf176#diff-e4535828acef79852aa104417c16fe3dR157
and the code:
https://github.com/SuperDJ/materialize/blob/master/bin/materialize.css
https://github.com/SuperDJ/materialize/blob/master/bin/materialize.js
As per, here.
You just need to do this simple thing (From the example there only):
HTML:
JS:
Visit the link for demo https://ampersandacademy.com/demo/autocomplete/
you can easily achieve the autocomplete functionality using the Devberidge plugin.
Get Devbridge plugin using https://github.com/devbridge/jQuery-Autocomplete
Here the getCountry.php file returns the JSON data. For more info visit https://ampersandacademy.com/tutorials/materialize-css/materialize-css-framework-ajax-autocomplete-example-using-php
You can use the above .js file and you can over ride
according to your requirement and it will work.
As mentioned above, autocomplete has been added the the materialize framework but it is still pretty limited. I'm waiting for a solution that supports values (ex Ids) icons and text.
Re: https://github.com/Dogfalo/materialize/issues/4086
down load this js and save inside your js folder jquery.materialize-autocomplete.js and u can over ride onSelect,minLength,showListOnFocus