Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search on main and sub rows; for found rows show main and all sub rows #1824

Open
drentha opened this issue Sep 28, 2022 · 1 comment
Open

Comments

@drentha
Copy link

drentha commented Sep 28, 2022

Wondering if its possible in tablesorter to return main and sub rows dependent on a search. Hopefully the below examples explain it.

Example table:
`

Goal Approved Declined Checks not met Withdrawn Grand Total
Wash car 3 3 4 10

Step Approved Declined Checksnot met Withdrawn Step Total
Get water 1 1
Get brushes 1 1 2
Get Water 1 1
Iron clothes 2 2
Run Marathon 1 1 2
Get job 6 2 1 9

Step Approved Declined Checksnot met Withdrawn Step Total
Create CV 1 1
Send emails 1 1 2
Proof read 1 1 2
`

When searching for "wash car" the returned result is:
`

Goal Approved Declined Checks not met Withdrawn Grand Total
Wash car 3 3 4 10

Step Approved Declined Checksnot met Withdrawn Step Total
Get water 1 1
Get brushes 1 1 2
`

When searching for "get water" the returned result is:
`

Goal Approved Declined Checks not met Withdrawn Grand Total
Wash car 3 3 4 10

Step Approved Declined Checksnot met Withdrawn Step Total
Get water 1 1
Get brushes 1 1 2
Get Water 1 1
`

When searching for "run marathon" the returned result is:
`

Goal Approved Declined Checks not met Withdrawn Grand Total
Run Marathon 1 1 2
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant