Server-side Dropdown Autocompletion
You can
1. Create Action
const createItem = (value, label) => ({
value: value,
labelText: {
value: label
}
});
const items = [
createItem("testA", "Test A"),
createItem("testB", "Test B"),
createItem("testC", "Test C"),
createItem("anotherTestA", "Another Test A"),
createItem("anotherTestB", "Another Test B"),
createItem("anotherTestC", "Another Test C")
];
if ($.params.search) {
return items.filter((x) => {
return x.labelText.value.includes($.params.search);
});
} else {
return items;
}
2. Add Options Component
3. Add Data Source
4. Link Completion Items to Options Component
5. Test It

Last updated
Was this helpful?



