You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
In case of Dynamic data source, using the code supplied in the documentation:
<script>
document.addEventListener('DOMContentLoaded', function() {
const tagsInput = document.getElementById('tags-with-source');
new BulmaTagsInput(tagsInput, {
source: async function(value) {
// Value equal input value
// We can then use it to request data from external API
return await fetch("https://restcountries.eu/rest/v2/name/" + value)
.then(function(response) {
return response.json();
});
}
});
}, false);
</script>
it is not clear to me how data should be returned from the server.
I have a JSON object like this:
Hi,
In case of Dynamic data source, using the code supplied in the documentation:
it is not clear to me how data should be returned from the server.
I have a JSON object like this:
[{"name":"Allemand","text":"Allemand"},{"name":"Animateur D'Art","text":"Animateur D'Art"}]
returned from my server, and it's not rendered correctly (it appears in the list as undefined).
Thanks in advance, any help is really appreciated.
The text was updated successfully, but these errors were encountered: