-
Notifications
You must be signed in to change notification settings - Fork 27
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
Only the <td> and their values are moved #50
Comments
Yes, that's exactly that! It was "id" in my case, but it's the same problem. getTableData() if (!isFileSize && !isDayOfWeek && !isDataAttribute) {
columnData.push(`${tdTextContent}#${i}`);
columnIndexAndTableRow[`${tdTextContent}#${i}`] = [tr.id, tr.innerHTML];
} updateTable() else if (!isFileSize) {
tr.id = columnIndexAndTableRow[columnData[i]][0];
tr.innerHTML = columnIndexAndTableRow[columnData[i]][1];
} There are actually cases where we don't know the classes to switch, when the row are striped for example, so it should have a boolean to activate it indeed. |
Sweet, looks like you figured it out! I would think the way we implement it is by using I was thinking of deprecating days of the week in favor of users using the Feel free to make a PR if you are interested and have the free time (preferably with some tests written if possible). Cheers. |
When you sort the table, only the
<td>
elements are moved, not the<tr>
. That could be ok, but the associated ids in the<tr>
don't move either, making it difficult if we want to make further treatment on the table (changing data for example)The text was updated successfully, but these errors were encountered: