selection([item])
If no argument is given, returns the first currently selected object. If a page item is given as argument, the page item will be selected.
Type: function
Parameter(s):
- item {PageItem} Optional:
The page item to select.
Returns:
-
{Object}:
The first selected object.