Hi @DB365-3161 ,
According to my research and testing, unfortunately, there is currently no way to display the button when the row is hovered.
I can only use the following JSON code to display a button when select the item, and here is my test result:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"children": [
{
"elmType": "span",
"style": {
"padding-right": "8px"
},
"txtContent": "[$Title]"
},
{
"elmType": "button",
"customRowAction": {
"action": "share"
},
"attributes": {
"title": "Share Item"
},
"style": {
"border": "none",
"background-color": "transparent",
"cursor": "pointer"
},
"children": [
{
"elmType": "span",
"attributes": {
"iconName": "Share"
},
"style": {
"display": "=if( @isSelected == true, 'flex', 'none' )"
}
}
]
}
]
}
I recommend you can create a feedback on this issue. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future.
feedback: https://feedbackportal.microsoft.com/feedback/
Thanks for your understanding and support.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.