mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
24 lines
851 B
Plaintext
24 lines
851 B
Plaintext
{
|
|
"name": "is_selected",
|
|
"type": "function",
|
|
"description": "Returns if a feature is selected. If called with no parameters checks the current feature.",
|
|
"arguments": [
|
|
{
|
|
"arg":"feature",
|
|
"optional": true,
|
|
"default": "current feature",
|
|
"description":"The feature which should be checked for selection."
|
|
},
|
|
{
|
|
"arg": "layer",
|
|
"optional": true,
|
|
"default": "current layer",
|
|
"description": "The layer (or its id or name) on which the selection will be checked."
|
|
}
|
|
],
|
|
"examples": [
|
|
{ "expression":"is_selected()", "returns" : "True if the current feature is selected."},
|
|
{ "expression":"is_selected(get_feature('streets', 'name', \"street_name\"), 'streets')", "returns":"True if the current building's street is selected."}
|
|
]
|
|
}
|