Way to get List webpart to work with List properties webpart on mdoern page with custom View format

New Contributor

Hi all,

I am trying to get my list webpart to work with the list properties webpart in the modern pages, while having some custom JSON View formatting, but finding that 

  1.  "hideSelection": "true",  seems to completely disable any link between the webparts
  2. "customRowAction": {"action": "defaultClick"}, only enables opening the list item in another tab/window

Is there another JSON option that I am missing?

Or is this something where spfx is necessary?

 

My JSON for reference.

 

{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"hideSelection": "true",
"hideColumnHeader": "true",
"rowFormatter": {
"elmType": "div",
"style": {
"float": "left"
},
"children": [
{
"elmType": "button",
"customRowAction": {
"action": "defaultClick"
},
"attributes": {
"class": "ms-bgColor-themeLighterAlt ms-bgColor-themePrimary--hover ms-fontColor-white--hover"
},
"style": {
"display": "flex",
"flex-wrap": "wrap",
"min-width": "150px",
"min-height": "50px",
"margin-right": "10px",
"margin-top": "10px"
},
"children": [
{
"elmType": "div",
"style": {
"text-align": "center",
"margin": "auto"
},
"children": [
{
"elmType": "div",
"attributes": {
"class": "sp-row-title "
},
"txtContent": "[$Title]"
}
]
}
]
}
]
}
}
0 Replies