May 19 2020 01:20 AM
Hello,
I'm using a simple JSON to create a nice view for our users on a doclib.
However when there are no items in the library, I would like to set my own custom message for the users to indicate that currently there are no items.(now we just get some icon that asks to drag items here)
Is this possible?
{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"hideSelection": true,
"hideColumnHeader": true,
"rowFormatter": {
"elmType": "div",
"attributes": {
"class": "sp-row-card"
},
"children": [
{
"elmType": "div",
"style": {
"text-align": "left"
},
"children": [
{
"elmType": "div",
"attributes": {
"class": "sp-row-title"
},
"txtContent": "[$Naam_x0020_vacature]"
},
{
"elmType": "div",
"attributes": {
"class": "sp-row-listPadding"
},
"txtContent": "[$Beschrijving]"
},
{
"elmType": "button",
"customRowAction": {
"action": "defaultClick"
},
"txtContent": "Bekijk Vacature",
"attributes": {
"class": "sp-row-button"
}
}
]
}
]
}
}