Current Scenario
There is currently no direct method available to disable a table row.
To disable a row, developers must:
- Retrieve the row data
- Typecast it to
TableRow
- Manually set the
disabled property
This approach is not intuitive and adds unnecessary complexity for a common use case.
Proposed Solution
Add a method to the Table class that allows developers to disable a specific row by providing its index.
For example:
disableRow(index: number);
This would:
- Improve developer experience
- Reduce the need for manual typecasting
- Provide a cleaner and more maintainable API