I'm trying to add a button to my code, which state is dependant on how much a grid is scrolled down.
In another project I found this condition:
"conditions": [
{
"conditions": {
"left": {
"context": "layerStatus",
"field": "menuGrid:visibleElements"
},
"right": {
"value": "-1"
},
"mode": "contains"
},
"state": "visible"
}
],
I've tryed to add a text with the value to test how it works:
{
"type": "text",
"value": {
"context": "layerStatus",
"field": "mainGrid:visibleElements"
},
but the text was always "default", no matter how much the grid is scrolled down or up.