Replies: 1 comment 1 reply
-
There is currently no support to search entries using a regexp. Would need to add a comparator fn in In the meantime, a possible workaround is to use <script>
export let handler // DataHandler instance
let regex
// custom comparator:
const check = (entry, regex) => {
return entry.match(regex) ? true : false
}
// search workaround:
const search = () => {
handler.filter(
regex,
(row) => row, // apply on full row object
check
)
}
</script>
<input
type="text"
bind:value={regex}
on:input={search}
/> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does the search functionality in the datatables support regular expressions (regex)? If so, could you provide some examples of how to use regex within the search box? If not, are there any workarounds or alternative methods to achieve similar results?
Beta Was this translation helpful? Give feedback.
All reactions