Improve num_selected and is_selected function help

This commit is contained in:
Matthias Kuhn 2016-10-27 23:09:31 +02:00
parent c282e26210
commit 5093ec6bc9
2 changed files with 18 additions and 3 deletions

View File

@ -3,8 +3,18 @@
"type": "function",
"description": "Returns if a feature is selected. If called with no parameters checks the current feature.",
"arguments": [
{"arg":"feature","description":"The feature which should be checked for selection"},
{"arg":"layer","description":"The layer (or its id or name) on which the selection will be checked"}
{
"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."},

View File

@ -3,7 +3,12 @@
"type": "function",
"description": "Returns the number of selected features on a given layer. By default works on the layer on which the expression is evaluated.",
"arguments": [
{"arg":"layer","description":"The layer (or its id or name) on which the selection will be checked"}
{
"arg": "layer",
"optional": true,
"default": "current layer",
"description": "The layer (or its id or name) on which the selection will be checked."
}
],
"examples": [
{ "expression":"num_selected()", "returns":"The number of selected features on the current layer."},