Skip to content

Commit 5093ec6

Browse files
committedNov 9, 2016
Improve num_selected and is_selected function help
1 parent c282e26 commit 5093ec6

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed
 

‎resources/function_help/json/is_selected

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@
33
"type": "function",
44
"description": "Returns if a feature is selected. If called with no parameters checks the current feature.",
55
"arguments": [
6-
{"arg":"feature","description":"The feature which should be checked for selection"},
7-
{"arg":"layer","description":"The layer (or its id or name) on which the selection will be checked"}
6+
{
7+
"arg":"feature",
8+
"optional": true,
9+
"default": "current feature",
10+
"description":"The feature which should be checked for selection."
11+
},
12+
{
13+
"arg": "layer",
14+
"optional": true,
15+
"default": "current layer",
16+
"description": "The layer (or its id or name) on which the selection will be checked."
17+
}
818
],
919
"examples": [
1020
{ "expression":"is_selected()", "returns" : "True if the current feature is selected."},

‎resources/function_help/json/num_selected

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
"type": "function",
44
"description": "Returns the number of selected features on a given layer. By default works on the layer on which the expression is evaluated.",
55
"arguments": [
6-
{"arg":"layer","description":"The layer (or its id or name) on which the selection will be checked"}
6+
{
7+
"arg": "layer",
8+
"optional": true,
9+
"default": "current layer",
10+
"description": "The layer (or its id or name) on which the selection will be checked."
11+
}
712
],
813
"examples": [
914
{ "expression":"num_selected()", "returns":"The number of selected features on the current layer."},

0 commit comments

Comments
 (0)
Please sign in to comment.