> For the complete documentation index, see [llms.txt](https://docs.blynk.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blynk.io/en/blynk.console/templates/dashboard/dashboard-layout.md). Agents can also search and read this documentation through its [MCP server](https://docs.blynk.io/en/~gitbook/mcp).

# Dashboard Layout

Dashboard Layout defines what a Device page shows in Blynk.Console: the standard Device header, tabs and [Widgets](https://docs.blynk.io/en/blynk.console/widgets-console.md), or a full page you build yourself in HTML.

### Layout options

| Layout          | What the Device page shows       |
| --------------- | -------------------------------- |
| **Default**     | Device header, tabs and Widgets. |
| **Custom HTML** | A full page built in code.       |

In **Custom HTML** layout, your code owns the header, tabs and Widgets:

* **Header Settings** is hidden.
* Dashboard tabs are not shown.
* The Device actions toolbox moves to the left side menu. See [Device page in Custom HTML layout](#device-page-in-custom-html-layout).

{% hint style="info" %}
Switching keeps both layouts. Nothing is deleted. Switching back to **Default** restores your Widgets and tabs.
{% endhint %}

### Switching the layout

1. Navigate to the **Dashboard** section of your Template.
2. Open the **Layout** dropdown next to the Dashboard title.
3. Select **Default** or **Custom HTML**.
4. Click **Save**.

On an empty Dashboard you can also click **Switch to Custom HTML** in the **Build page in code** card.

### Adding HTML code

When you switch to **Custom HTML** and no code exists yet, the canvas shows **No HTML code yet**. Choose how to start:

* **Add Code** – opens the HTML code editor with a starter document that already creates the `BlynkBridge` connection.
* **Upload .html** – opens your computer's file manager so you can pick an existing `.html` file.

#### HTML code editor

The editor works the same way as for the HTML Widget. See [Code Editor](https://docs.blynk.io/en/blynk.console/widgets-console/html-widget.md#code-editor).

### Managing the HTML page

Hover over the canvas to see the page actions:

* **Edit** – opens the HTML code editor.
* **Replace File** – opens your computer's file manager to pick a different `.html` file.
* **Clear** – removes the code from the canvas and returns it to the **No HTML code yet** state. The file stays in [Assets](https://docs.blynk.io/en/blynk.console/templates/assets.md).

### Building the page

A Custom HTML page uses the same `BlynkBridge` API as the [HTML Widget](https://docs.blynk.io/en/blynk.console/widgets-console/html-widget.md): read and write Datastream values, receive live updates, fetch historical data and match the app theme. For the full API, see the [HTML Widget Developer Guide](https://docs.blynk.io/en/html-widget-developer-guide/overview.md).

Make the page's root container fill all the available space.

Because the standard header and tabs are not shown, your page is responsible for anything users need from them, for example:

* **Device name and status** – use [`getDeviceInfo()`](https://docs.blynk.io/en/html-widget-developer-guide/device.md).
* **Navigation between pages** – build it into your page.

### Device page in Custom HTML layout

The Device actions toolbox normally sits in the Device header. In **Custom HTML** layout it moves to the left side menu (the Device list), so Device actions stay available even though your code owns the page.

#### Expanded side menu

Actions are shown only for the currently selected Device:

* **Device menu** (**⋯**) is always shown on the selected Device row.
* **Developer Tools** and **Edit Template** buttons appear on hover. Developer Mode only.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.blynk.io/en/blynk.console/templates/dashboard/dashboard-layout.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
