Pages
Last updated
Last updated
With Pages you can add multiple pages to a device dashboard. This helps to better organize the UI and build connections between sections of your device dashboard.
Device Settings. Let's say you plan to use a group of widgets for various Settings. This is not something your end-users will be using very often, so it makes sense to organize Settings widgets as into a separate page. For end-users, there will be a tiny icon in the UI which will open this page.
View More Data. Imagine you have a sensor value displayed on the dashboard and you would like to show more data, like historical data chart, explanations how to read this, show additional data points etc. To de-clutter the user interface, you can create a button which will open a page with all of this additional information.
Technical Dashboard. Imagine you have a technical dashboard that should only be seen by users with a certain role. With Pages, you can add a tab in Device Info and define which user roles can access this tab. Users with other roles will not see this dashboard.
Pages feature is available in paid plans only. You can always upgrade in your Account Settings.
There are three types of pages you can add:
Standalone pages
Pages (tabs) in Device Info
Device Welcome page
Standalone Pages can be interconnected. You can open Page A from Page B or Page C in any order. Just keep the navigation simple and clear for end-users.
End users open Pages by tapping on widgets which are set as entry points. Users can always go back to the previous view.
Device Info Pages can only be accessed in Device Info view.
These pages are opened by tapping on widgets that are set as entry points.
Go to ToolBox → Pages → Standalone Pages
Tap + Add Page
Give your new page a name
Tap Create in the top right corner
Your new page is created
After you have created a new page, tap on it to start editing. You will see a familiar canvas with the grid where you can add widgets.
Tap on the gear icon to access page settings, where you can Rename or Delete the page.
You can always access all of the pages and edit them in ToolBox → Pages
Once the page layout is ready, you need to define a page entry point. In Blynk, an entry point is a widget configured to open pages.
Button
Styled Button
Icon Button
Image Button
To create an entry point:
Add one of the supported widgets to the dashboard (check supported widgets below)
Open Widget Settings
Set Mode to Page
Choose the Page to open
Set page appearance animation (how the page appears on screen). The page can slide in from the bottom or from the left.
After the page has been set up and connected to an entry point widget, it's ready for use.
Exit Developer Mode
Open the device
Tap on the entry point widget
A page should open
Press Back to return to the entry point
You can change the target page from the device using firmware API. When this command is used, a widget will open a page with a specified index.
Page index can be found
Create a new datastream. For example: PageIndex
Add a widget that should open a page
Set it's datastream to PageIndex
Set mode to PAGE
Choose default page
On your device use the command:
vPin
is a Virtual Pin number of the widget.
index
is the id of the page this widget should open. It can be found in Toolbox -> Pages.
You can also add Pages (in the format of Tabs) to "More.." menu on device Dashboard. By default, this view has 2 tabs: Device Info and Timeline. They can't be deleted or removed.
To see these tabs, end-users will need to open Device Info. This is the only entry point.
Unlike Standalone Pages, you can define which users can access the tab. For example, if you choose Admins only, users with other roles will not see this tab. This can be useful when you need to place some technical information which is only needed for administrators.
Go to Toolbox → Pages → Device Info Tabs
Tap + Add Page
Give your new tab a name
Set access permissions (optional)
Tap Create in the top right corner
A new tab page is created
After you have created a new tab, tap on it to start editing. You will see a familiar canvas with the grid where you can add widgets.
You can always access list of added tabs in Toolbox → Pages → Device Info Tabs
To change the order of tabs:
Tap and hold the tab you want to move
Drag and drop to desired position
To delete the tab, swipe left in the list of Tabs . Keep in mind that this will delete all widgets on the tab.
Alternatively, you can delete the tab during editing.
This is a special page that can be shown after the device was added using device provisioning or device claiming.
It's a good place to explain to your customers how device works, or walk them through the initial configuration.
Device Welcome Page is set up similarly to a Standalone Page described above using widgets
Optionally, instead of page with widgets you can set up a web page to show after the device was added. In this case, the in-app browser will open automatically with the specified page.
Make sure that the web page is mobile-friendly so that it renders correctly in the in-app browser.