mui-toolpad
mui-toolpad copied to clipboard
Datagrid link column should support aliasing
Duplicates
- [X] I have searched the existing issues
Latest version
- [X] I have tested the latest version
Summary 💡
From a data grid cell, I want to take the end-user to another page of the app. For example app and screenshot below, the column name is sales_rep.
Now, instead of showing the link, I want to show Open for all rows.
Even better would be, if I can make the adjacent column sales_rep_employee_number a hyperlink that takes a custom link based on the employee id.
Solution
Columns should support creating an alias.
Benchmarks
- Metabase:
-
Retool link: There was no option to add alias to link.

-
Retool Button: Button works for this use case

Two more points to note in the above screenshot:
a. The navigation is to a Retool page, so based on if the app is in edit mode or dev mode they manage the URL themselves.
b. The URL params are contextual i.e, they are available based on the action you are taking 'Go to Retool page' in this case. It then asks you to assign a key which is then accessible under urlParams object on the other page.
@prakhargupta1 this sounds more like a case for custom component. We can now create custom components to be rendered inside data grid cells, so it should be easy to model it accordingly.
If we have a "link" column type, I think it's not too far fetched to have it support both url and text.
If we have a "link" column type, I think it's not too far fetched to have it support both url and text.
Yeah, in my opinion sounds like a common-enough use case that we should support it.