# Properties

## HTML Canvas class properties <a href="#properties" id="properties"></a>

| Property                      | Type                 | Description                                                                                                                                       |
| ----------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `dashboardDateRange`          | `Object`             | Dashboard time frame.                                                                                                                             |
| `dashboardObject`             | `Object`             | Dashboard information.                                                                                                                            |
| `deviceObject [DEPRECATED]`   | `Object`             | [Device object](https://docs.ubidots.com/reference/device-object) of the currently selected device in a dynamic dashboard.                        |
| `selectedDevice [DEPRECATED]` | `string`             | ID of the currently selected device in a dynamic dashboard.                                                                                       |
| `selectedDevices`             | `string array`       | Array of the selected device IDs in a dynamic dashboard.                                                                                          |
| `selectedDeviceObjects`       | `Object array`       | [Device objects](https://docs.ubidots.com/reference/device-object) array for the selected devices in a dynamic dashboard.                         |
| `selectedFilters`             | `Array array object` | Array containing as many arrays as filters configured in the dashboard. Each nested array contains the filter objects for that particular filter. |
| `token`                       | `string`             | Account default token.                                                                                                                            |
| `realTime`                    | `bool`               | Whether real time is enabled in the dashboard.                                                                                                    |

### `dashboardDateRange` <a href="#dashboarddaterange" id="dashboarddaterange"></a>

```json
{
    "start":1637006467592,
    "end":1637095008866
}
```

### `dashboardObject` <a href="#dashboardobject" id="dashboardobject"></a>

```json
{
    "id": "6624cb56820a574b5730a16",
    "name": "some-dashboard",
    "timeframe": {
        "endDate": "now",
        "startDate": "now-24h"
    },
    "organization": {}
}
```

### `selectedDevices` <a href="#selecteddevices" id="selecteddevices"></a>

```json
[
    "65fb47fad809281764f8a350",
    ... ,
    "65fb47fad809281764f8a358"
]
```

### `selectedDeviceObjects` <a href="#selecteddeviceobjects" id="selecteddeviceobjects"></a>

```json
[
   {
      "url":"https://industrial.ubidots.com/api/v2.0/devices/65fb47fad809281764f8a350",
      "id":"65fb47fad809281764f8a350",
      "label":"2cf7f1c042300137",
      "name":"El Poblado",
      "description":"",
      "lastActivity":1714518206109,
      "createdAt":"2024-03-20T20:32:58.793812Z"
   },
   {
      "url":"https://industrial.ubidots.com/api/v2.0/devices/65fb47cec4098b1afda06660",
      "id":"65fb47cec4098b1afda06660",
      "label":"2cf7f1c042300213",
      "name":"Envigado",
      "description":"",
      "lastActivity":1712755770263,
      "createdAt":"2024-03-20T20:32:14.215320Z"
   },
   {
      "url":"https://industrial.ubidots.com/api/v2.0/devices/65a6fd8a9c33d2000c0ba386",
      "id":"65a6fd8a9c33d2000c0ba386",
      "label":"902a3c5ff139b0d5e390c1682472c7fa",
      "name":"West Menlo Park",
      "description":"Current weather conditions in West Menlo Park (US)",
      "lastActivity":1709043377617,
      "createdAt":"2024-01-16T22:04:58.909444Z"
   }
]
```

### `selectedFilters` <a href="#selectedfilters" id="selectedfilters"></a>

```json
[
   [
      {
         "type":"value",
         "value":"60",
         "variables":"~temperature",
         "lookup":"lte",
         "negate":false
      },
      {
         "type":"value",
         "value":"30",
         "variables":"~temperature",
         "lookup":"gte",
         "negate":false
      }
   ],
   [
      {
         "type":"value",
         "value":"60",
         "variables":"~humidity",
         "lookup":"lte",
         "negate":false
      },
      {
         "type":"value",
         "value":"30",
         "variables":"~humidity",
         "lookup":"gte",
         "negate":false
      }
   ]
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.ubidots.com/dashboards-and-widgets/html-canvas/built-in-library/properties.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
