...
To hide the Occupancy from the label update the occupancy
value which is nested in tooltip label_options
to false.
Code Block | ||
---|---|---|
| ||
"tooltiplabel_options": { "occupancy": {"show": false} } |
Hide Occupancy by Space type
Status | ||||
---|---|---|---|---|
|
You can also choose to hide the occupancy for specific space types.
This can be useful for workspaces such as desks or parking where the occupancy will always be 1.
Under the occupancy
object, include the object "hide": []
, this will then require a comma-separated list of space types that should NOT show the occupancy.
Code Block | ||
---|---|---|
| ||
"label_options": {
"occupancy": {
"show": true,
"hide": ["desk","parking"]
}
} |
Each space type listed needs to be in quotation marks.
The comma-separated list is case-insensitive.
Show/hide Status
By default, the Status is not displayed on the marker label.
To show the resource status you will need to add a status
object to the tooltip label_options
object, which needs to contain "show": true
, as shown below.
Code Block | ||
---|---|---|
| ||
"tooltiplabel_options": { "status": { "show": true } } |
Hide Status by Space type
Status | ||||
---|---|---|---|---|
|
You can also choose to hide the status for specific space types.
Under the status
object, include the object "hide": []
, this will then require a comma-separated list of space types that should NOT show the status.
Code Block | ||
---|---|---|
| ||
"label_options": { "occupancystatus": { "show": true, "hide": ["desk","parking"] } } |
Each space type listed needs to be in quotation marks.
The comma-separated list is case-insensitive.
Custom Status text
The text shown for each status can also be updated.
You will need to include a statuses
array in the status
object.
This array must include 8 strings, below is an example of the default values that are used.
Code Block | ||
---|---|---|
| ||
"tooltiplabel_options": { "status": { "show": true, "statuses": ["Error", "Available", "Awaiting Check-in", "In-progress", "Checkout", "Not in Use", "Setup in Progress", "Cleardown in Progress"] }, "occupancy": {"show": true} } |
Warning |
---|
When updating the Status text the order and number of string in the statuses array must be maintained. |
...