Problem/Motivation

The Hidden / Expandable column functionality should be updated.

Steps to reproduce

No need.

Proposed resolution

According to the DataTables docs, we need to use Child rows with StateSave. See https://datatables.net/examples/api/row_details_stateSave.html.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Issue fork datatables-3590699

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

just-me created an issue. See original summary.

just-me’s picture

Issue summary: View changes
just-me’s picture

Title: Updating the Hidden / Expandable column functionality » Updating the Hidden / Expandable column functionality acc to the new API

just-me’s picture

Assigned: just-me » Unassigned
Status: Active » Needs review

I've merged the parent branch(from jQuery to Vanilla JS).

I've updated the Hidden / Expandable column functionality according to the new API.
Short review:

  1. The logic of adding a technical column in the datatables.js was removed. It's on the library's side now.
  2. All needed settings for Child rows with StateSave according to the docs were prepared in the *.module files

Please review it.

just-me’s picture

Updated according to the PR suggestions.

quadrexdev’s picture

Looks good

just-me’s picture

Status: Needs review » Fixed

Merged to 2.x, thanks to everyone.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.