Skip to content
Permalink
Browse files

Improve num_selected and is_selected function help

  • Loading branch information
m-kuhn committed Nov 9, 2016
1 parent c282e26 commit 5093ec6bc91ead1b9b2aaa3923ba98f2ef279e3a
Showing with 18 additions and 3 deletions.
  1. +12 −2 resources/function_help/json/is_selected
  2. +6 −1 resources/function_help/json/num_selected
@@ -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."},
@@ -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."},

0 comments on commit 5093ec6

Please sign in to comment.
You can’t perform that action at this time.