SPO list view formating - json beginner

New Contributor

Hi,
When i'm doing conventional row format - change the row color of items modified today - it does that and creates the json of this view. Nice.

There's a simple Hover on Title json code that when i try just this code it works very nice.
I am trying to combine the 2, row conditional format and hover. can someone assist?

 

https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting
scroll down to Default cards on hover via formatting.

 

 

I copied the code here:

{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"children": [
{
"elmType": "img",
"style": {
"width": "32px",
"height": "32px",
"overflow": "hidden",
"border-radius": "50%",
"margin": "2px"
},
"attributes": {
"src": "='/_layouts/15/userphoto.aspx?size=S&accountname=' + [$Editor.email]",
"title": "[$Editor.title]"
}
},
{
"elmType": "span",
"style": {
"vertical-align": "middle",
"margin-left": "2px"
},
"txtContent": "[$Editor.title]"
}
],
"defaultHoverField": "[$Editor]"
}

 

 

thanks

0 Replies