This PR moves the query_button plugin into the core.
The method returns a button element which will execute a parameterised query.
"reload" is used to reload the location.layer after the query has been executed (e.g. when the location geometry has been updated).
"dependents" is used to reload the dependent fields after the query has been executed.
"alert" is used to display a message after the query has been executed.
{
"label": "Snap to Postal Sector",
"type": "query_button",
"query": "catchment_statistics_snap_to_postal_sector",
"queryparams": {
"id": true
},
"alert": "Query has executed!",
"reload": true,
"dependents": [
"geom_3857",
"perimeter",
"area"
]
}
This PR moves the query_button plugin into the core. The method returns a button element which will execute a parameterised query. "reload" is used to reload the location.layer after the query has been executed (e.g. when the location geometry has been updated). "dependents" is used to reload the dependent fields after the query has been executed. "alert" is used to display a message after the query has been executed.