C
|
Chris Whitehead 5/23/2024 |
What do you mean by "I need to detect the list's current mode" I was thinking there's only one mode. I only ask so I can understand your issue. |
P
|
polat author 5/24/2024 |
When you have a "list" page and enable "inline add" or "inline edit", you have a small edit button at the left side of all rows. (I've marked as solved by mistake, and couldn't revert it)
|
C
|
cristi 5/24/2024 |
On list page javascript onload: pageObj.getItemButton('your_custom_button_id').addClass('trt'); On add page javascript onload pageObj.getItemButton('your_custom_button_id',row.recordId()).removeClass('trt'); same code on edit page javascripot onload: pageObj.getItemButton('your_custom_button_id',row.recordId()).removeClass('trt'); In editor -> custom css add a class "trt" - or what name you want just be sure to change that name in the code above: .trt{ |
P
|
polat author 5/24/2024 |
Thank you very much Cristi! Maybe it was obvious but I was surprised that although I'm not using usual add/edit pages, their events are still called by inline add/edit actions. |