I would like to present the user with a “No Search Results” text if there are no results after a search of a dataset. Here is my current code for filtering the data:
export function searchBox_keyPress(event) {
if (event.key === 'Enter') {
filter($w('#searchBox').value)
}
}
function filter(title) {
$w('#dataset1').setFilter(wixData.filter().contains('title', title));
}
The returned filtered data displays in the Table. How can show “No Search Results” when no data is found in the filter?