Is it possible to change action on row click?
I was wondering if it's possible to trigger another action when user clicks on a row? e.g. I would like to have view action instead of edit action on row click.
10 Replies
Check the docs
if you have a ViewAction defined in the table we will use that one by default anyway
Hm, I did not but I will try. I did not think about it. π
Is there a way to have view open as modal? Right now it opens as a separate page.
Remove the linkage to the table with the page class
Don't have a
ViewPage
and it will open in a modalWhat about opening a modal on row clicking? I am in a chicken and egg race here. I thought I can use view as a modal when user clicks on a row but then view does not allow to edit anything, and I have some toggle actions that I want to allow user to change.
You can overwrite the row action on the List Page. Something like
getRowRecordAction
or similar
So I have managed to override this using but for this I need to remove
The problem now is that when I click
edit
button, the edit opens in a modal.you need an edit page defined in the getPages()
yeh but then getTableRecordActionUsing is not working anymore, when I click on row it opens in
edit
Okay, this works. π