Skip to content
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

Component Table (Lab) toggle disable on checkbox #2804

Open
2 tasks done
rubenbarroshv opened this issue Jun 14, 2022 · 1 comment
Open
2 tasks done

Component Table (Lab) toggle disable on checkbox #2804

rubenbarroshv opened this issue Jun 14, 2022 · 1 comment
Labels
➕ enhancement An enhancement to an existing feature

Comments

@rubenbarroshv
Copy link
Contributor

Latest version

  • I have tested the latest version

No Hitachi Vantara confidential content

  • I'm not including any Hitachi Vantara confidential content

Summary 💡

While using the table component from Lab I was trying to disable some checkboxes depending on a condition. I was able to do this within the creation of the initialState of the table instance.

This is seems like an hack because we initialise the table instance with some props, then we receive the data from the server, and we are updating the initialState, which then recreates/updates the table instance.

Examples 🌈

We could have some property inside the data which would tell the table component to disable the checkbox (like we have on the Table component from Core).

@eliofreitas suggested that we implement a ToggleRowLocked, "replicating" the ToggleRowSelected method.

Motivation 🔦

No response

@rubenbarroshv rubenbarroshv added the ⌛ needs triage Waiting for a review. These issues haven't been looked at yet by a maintainer. label Jun 14, 2022
@francisco-guilherme francisco-guilherme added ➕ enhancement An enhancement to an existing feature and removed ⌛ needs triage Waiting for a review. These issues haven't been looked at yet by a maintainer. labels Jul 5, 2022
@francisco-guilherme
Copy link
Contributor

Hi @rubenbarroshv , tks for reaching out.

We'll refine this internally and when prioritised i'll let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
➕ enhancement An enhancement to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants