You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it seems there is no way to directly assign an id to the underlying table element.
This feature would be helpful in scenarios like end-to-end testing with tools such as Selenium or Playwright, where selecting elements by ID is often more stable and precise than relying on class names or wrapper elements.
While it's possible to wrap the MaterialTable component in a custom container and assign an ID to that, it would be much more robust and direct to have the ability to pass an id prop (or similar) to the table itself.
Is this currently planned or am I just not seeing how it works?
Uh oh!
There was an error while loading. Please reload this page.
Currently, it seems there is no way to directly assign an id to the underlying table element.
This feature would be helpful in scenarios like end-to-end testing with tools such as Selenium or Playwright, where selecting elements by ID is often more stable and precise than relying on class names or wrapper elements.
While it's possible to wrap the MaterialTable component in a custom container and assign an ID to that, it would be much more robust and direct to have the ability to pass an id prop (or similar) to the table itself.
Is this currently planned or am I just not seeing how it works?
Use Case Example:
The text was updated successfully, but these errors were encountered: