Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dashboard Layout

Dashboard Layout defines what a Device page shows in Blynk.Console: the standard Device header, tabs and Widgets, 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:

Switching keeps both layouts. Nothing is deleted. Switching back to Default restores your Widgets and tabs.

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.

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.

Building the page

A Custom HTML page uses the same BlynkBridge API as the HTML Widget: 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.

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().

  • 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.

Was this helpful?