setLabels
Syntax | setLabels(pageId, labels []) | Package | |
Alias | Pkg Usage |
Description
The routine receives the id of a page and an array of Strings, representing the names of the labels to be added to that page. All previous labels for page are removed.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
pageId | Number | Yes | ID of the selected page for which to set the labels. |
labels | String [] | Yes | Labels. |
Return Type
Boolean (true/false)
Example
setLabels(11801, ["my_page", "report", "active_status",]);