Is there a way to make a custom button that will take you to a page, and then have it so you can show data in a DataGrid?
For example, say we have a DataGrid and you click on the show button for a post with the id = John
. The show button would take you to /resource/id/show
and in there you can have a DataGrid with all the attributes of John.
So I want to make a button to take me to /resource/id/name
instead of show where I can have a Datagrid with properties of name
from the specific id
.
Is something like this possible?
Yes you can :) You should:
declare a custom route for your custom page
create a button component that you pass to the List component actions