Dashticz / dashticz_v2

Alternative dashboard for Domoticz
107 stars 59 forks source link

Custom size of popup windows #412

Closed lokonli closed 5 years ago

lokonli commented 6 years ago

To change the default size of the graph popup windows add the following style blocks to your custom.css: ` .graphheight { height: 400px; }

.graphwidth { width: 400px; } `

To remove the close button of the graph popup add the following block to custom.js: .graphclose { display: none; } To remove the close button of the frame popup add the following block to custom.js: .frameclose { display: none; }

To set a specific width of the frame of a button add 'framewidth' and/or 'frameheight' setting to the block definition in CONFIG.js like: ` buttons.buienradar = { key: 'buienradar', width:12, isimage:true, refresh:6000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=256&h=256', url:'https://gadgets.buienradar.nl/gadget/zoommap/?lat=52.06022&lng=4.39288&overname=2&zoom=13&naam=2496hx&size=5&voor=1', framewidth:580, frameheight: 520};

You can do the same for a popup window, like: blocks[107]['openpopup'] = { url: 'http://www.nos.nl', auto_close : 500, frameheight:200};

`

Siewert308SW commented 6 years ago

Just tested your PR. Was looking for a way to do this on my 7"SmartiPi Touchscreen and works great... 20181203_211842

lokonli commented 6 years ago

Good! Thanks for testing 👍

Siewert308SW commented 6 years ago

Good! Thanks for testing 👍

No Problemo... Just came across something which i personally want to see otherwise. When i click the popup it will direct me to the Buienradar website. I'm not a Java coder, but any idea how i could prevent that?

lokonli commented 6 years ago

Probably that's not possible. The content is controlled by buienradar which cannot be changed I suppose.

Siewert308SW commented 5 years ago

Thx...