buttons force custom height

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

buttons force custom height

Post by Gianni »

i have 3 cams on my dashboard.
2 are 16.9 and 1 4.3
Now the 4.3 is a spare because the 3 cam 16.9 was broken.
now i have a scrollbar in my dash.
How can is set the height of a button to force the 4.3 to 16.9

i try
buttons.Garage = {width:12, isimage:true, forcerefresh:true, refresh:1000, image: 'http://ip/cgi-bin/xxxxxxxxxxxi', url: 'http://ip/cgi-bin/xxxxxxxxxxxxxxi',framewidth:550, frameheight:350}

but this is not working?

grts
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: buttons force custom height

Post by Lokonli »

You can set the height of a button with the forceheight parameter.

I will update the documentation for this


Sent from my SM-A320FL using Tapatalk

Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: buttons force custom height

Post by Lokonli »

And image must be renamed to btnimage, at least for latest master and beta

Sent from my SM-A320FL using Tapatalk

Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: buttons force custom height

Post by Gianni »

hey Lokonli

i'm on v 3.0.0 master
if i change image to btnimage then the cam is not loading.
if i change to image again everything is ok
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: buttons force custom height

Post by Lokonli »

It was changed in release 3.2.0

Sent from my SM-A320FL using Tapatalk

Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: buttons force custom height

Post by Gianni »

thx worked after i update the master branche
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: buttons force custom height

Post by Gianni »

just 1 question
when i click on the button i get a popup.
With width and height i can change the size of the modal.
But how can i change the size of the image.
If i hit the cam i want a image double the size so i can see clear what's on the frontdoor?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest