Replies: 3 comments 6 replies
-
You have to set |
Beta Was this translation helpful? Give feedback.
-
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 ? |
Beta Was this translation helpful? Give feedback.
-
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/[email protected]/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;
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions