Skip to content

Commit

Permalink
Improve num_selected and is_selected function help
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Nov 9, 2016
1 parent c282e26 commit 5093ec6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
14 changes: 12 additions & 2 deletions resources/function_help/json/is_selected
Original file line number Diff line number Diff line change
Expand Up @@ -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."},
Expand Down
7 changes: 6 additions & 1 deletion resources/function_help/json/num_selected
Original file line number Diff line number Diff line change
Expand Up @@ -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."},
Expand Down

0 comments on commit 5093ec6

Please sign in to comment.