DataTables / DataTables/Scroller
row.child("some htmls").show() is not working with scrolling pagination
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 83
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
I have a pagination table but not not like 1-2-3-4-5.
Problem is first page working on row.child("some htmls").show(),
But second and after pages doesn't work row.child("some htmls").show()
How do I this ?
$('#dt-tablenametbody td.details-control').on('click', '.table-arrow', function () {
var tr = $(this).closest('tr');
var row = table.row(tr);
if ( row.child.isShown() ) {
row.child.hide();
tr.removeClass('shown');
} else {
var threadsChildRowsHtml = ChildRowTemplate(jsonData);
row.child(threadsChildRowsHtml).show();
tr.addClass('shown');
}
tr.find('.table-arrow').toggleClass('arrow-up arrow-down');
});
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied row.child("some htmls").show() click handler and reproduce the behavior on the first and later scrolled pages. No repository file or test is named, so locate the relevant Scroller integration and determine why the handler differs across pages; done means the child row displays consistently when opened after pagination or scrolling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100