Replies: 3 comments 6 replies
|
You have to set |
0 replies
|
there are many items I just want to show only the filtered one and then user can select from the filtered list select input has to update every time when user type is that possible ? |
5 replies
|
Here is the full dynamic solution using javascript ## async function load(query, callback) {
const response = await fetch(`/big_search.sql?q=${encodeURIComponent(query)}`);
callback(await response.json());
}
new TomSelect("#big_select", {
valueField: "id",
labelField: "value",
searchField: "value",
load,
});## select 'shell' as component,
'https://cdn.jsdelivr.net/npm/tom-select@2.4.1/dist/js/tom-select.popular.min.js' as javascript,
'big_select.js' as javascript;
select 'form' as component;
SELECT 'select' as type, 'big_select' as id;
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
All reactions