Filter records using table.cells('selector')
Filter records using table.cells('selector')
rognales
Posts: 8Questions: 3Answers: 1
Is it possible to do record filtering using table.cells() API?
This discussion has been closed.
Answers
Hi @rognales ,
If you mean searching, use
search()
orcolumn().search()
/columns().search()
. If that's not what you mean, could you give more information, please, or link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.Cheers,
Colin
Cheers,
Colin
Yes. The signature for
search()
is only the text we are searching (along with smart search/regex mode). What i'm looking for is, to do search usingtable.cells()
e.g.table.search(table.cells('.selected'))
Hi @rognales ,
A search applies to the whole table, not anything selected. You can do your own filtering on the data with
filter()
that doesn't affect the display.Cheers,
Colin
But what if i want the
filter
to actually affect the display?The you need to do a
search()
instead. It's probably worthwhile stepping back and say what you're trying to achieve - that might help find the best solution.