Hi all,
I want to display the layout of my solar panels on a page in Dashticz. 21 panels are placed in a matrix of 4 columns and 6 rows. There are some empty spaces.
X X X X
X X X X
X X X X
X X X - <-----
X X X X
X X
How do I create an 'empty' block (see arrow)?
Regards,
Egbert
Configuration question - how to create an empty block
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 2290
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Configuration question - how to create an empty block
It's a bit clumsy, but you can do it as follows:egberts wrote: ↑Thursday 22 April 2021 20:50 Hi all,
I want to display the layout of my solar panels on a page in Dashticz. 21 panels are placed in a matrix of 4 columns and 6 rows. There are some empty spaces.
X X X X
X X X X
X X X X
X X X - <-----
X X X X
X X
How do I create an 'empty' block (see arrow)?
Regards,
Egbert
1) Define a button, without title, of a certain width:
Code: Select all
blocks['empty'] = {
title:'',
width: 4
}
Code: Select all
columns[1] = {
...
blocks: [ ..., 'empty', ...],
...
}
a) To set the height and show the background:
Code: Select all
div[data-id='empty'] {
height: 300px
}
Code: Select all
div[data-id='empty'] {
visibility: hidden;
}
Who is online
Users browsing this forum: No registered users and 1 guest