Skip to content

Conversation

GoulielmosFloros
Copy link
Contributor

Description

I removed the if statement that was not allowing a header to get a checkbox.

Now when you create your table you can add the command: [yourTableName].selectableRows = true;
and the checkboxes will appear.
Also, when you click the button in the header it selects and deselects all the subsequent rows.

Reviewed-by: Goulielmos Floros
Ref: #49

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following:

  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Follow the Conventional Commits v1.0.0 standard for PR naming (e.g. feat(examples): add hello-world example).
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

I removed the if statement that was not allowing a header to get a checkbox.

Now when you create your table you can add the command:
[yourTableName].selectableRows = true;
and the checkboxes will appear.
Also, when you click the button in the header it selects and deselects all the subsequent rows.

Reviewed-by: Goulielmos Floros
Ref: ThatOpen#49
@HoyosJuan
Copy link
Member

Hey @GoulielmosFloros!

I was testing this, and it works for the parent-most rows of the table. However, it doesn't work for nested rows 🤔 Are you able to make it work for them as well, please?

Thanks a lot!

@GoulielmosFloros
Copy link
Contributor Author

Apologies Juan the first commit description had to do with doing the merge and resolving the conflicts, but by mistake I changed the description.

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

Successfully merging this pull request may close these issues.

2 participants