Home

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

%3CLINGO-SUB%20id%3D%22lingo-sub-720650%22%20slang%3D%22en-US%22%3EWay%20to%20get%20List%20webpart%20to%20work%20with%20List%20properties%20webpart%20on%20mdoern%20page%20with%20custom%20View%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-720650%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20get%20my%20list%20webpart%20to%20work%20with%20the%20list%20properties%20webpart%20in%20the%20modern%20pages%2C%20while%20having%20some%20custom%20JSON%20View%20formatting%2C%20but%20finding%20that%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3E%26nbsp%3B%3CSTRONG%3E%22hideSelection%22%3A%20%22true%22%2C%26nbsp%3B%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eseems%20to%20completely%20disable%20any%20link%20between%20the%20webparts%3C%2FLI%3E%3CLI%3E%3CSTRONG%3E%22customRowAction%22%3A%20%7B%22action%22%3A%20%22defaultClick%22%7D%2C%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eonly%20enables%20opening%20the%20list%20item%20in%20another%20tab%2Fwindow%3C%2FLI%3E%3C%2FOL%3E%3CP%3EIs%20there%20another%20JSON%20option%20that%20I%20am%20missing%3F%3C%2FP%3E%3CP%3EOr%20is%20this%20something%20where%20spfx%20is%20necessary%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20JSON%20for%20reference.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%7B%3CBR%20%2F%3E%22schema%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fview-formatting.schema.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fview-formatting.schema.json%3C%2FA%3E%22%2C%3CBR%20%2F%3E%22hideSelection%22%3A%20%22true%22%2C%3CBR%20%2F%3E%22hideColumnHeader%22%3A%20%22true%22%2C%3CBR%20%2F%3E%22rowFormatter%22%3A%20%7B%3CBR%20%2F%3E%22elmType%22%3A%20%22div%22%2C%3CBR%20%2F%3E%22style%22%3A%20%7B%3CBR%20%2F%3E%22float%22%3A%20%22left%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22children%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22elmType%22%3A%20%22button%22%2C%3CBR%20%2F%3E%22customRowAction%22%3A%20%7B%3CBR%20%2F%3E%22action%22%3A%20%22defaultClick%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22attributes%22%3A%20%7B%3CBR%20%2F%3E%22class%22%3A%20%22ms-bgColor-themeLighterAlt%20ms-bgColor-themePrimary--hover%20ms-fontColor-white--hover%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22style%22%3A%20%7B%3CBR%20%2F%3E%22display%22%3A%20%22flex%22%2C%3CBR%20%2F%3E%22flex-wrap%22%3A%20%22wrap%22%2C%3CBR%20%2F%3E%22min-width%22%3A%20%22150px%22%2C%3CBR%20%2F%3E%22min-height%22%3A%20%2250px%22%2C%3CBR%20%2F%3E%22margin-right%22%3A%20%2210px%22%2C%3CBR%20%2F%3E%22margin-top%22%3A%20%2210px%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22children%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22elmType%22%3A%20%22div%22%2C%3CBR%20%2F%3E%22style%22%3A%20%7B%3CBR%20%2F%3E%22text-align%22%3A%20%22center%22%2C%3CBR%20%2F%3E%22margin%22%3A%20%22auto%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22children%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22elmType%22%3A%20%22div%22%2C%3CBR%20%2F%3E%22attributes%22%3A%20%7B%3CBR%20%2F%3E%22class%22%3A%20%22sp-row-title%20%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22txtContent%22%3A%20%22%5B%24Title%5D%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-720650%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
JPStoffell
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]"
}
]
}
]
}
]
}
}
Related Conversations
SharePoint Lists - Expanded View Roadmap ID: 57302
Kotus-Tech in SharePoint on
9 Replies
Is it possible for Edge to play HEVC (H265) MKV files ?
HotCakeX in Discussions on
2 Replies
Multi-value fields display no separator
Florian Hein in SharePoint on
1 Replies
Auto download link
timparsons in SharePoint on
2 Replies
Color-Code Email Accounts in Outlook 365
Arrrggghhh in Office 365 on
1 Replies