Skip to content

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

@drentha

Description

@drentha

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
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions