Search found 4 matches

by darkville
Friday 16 April 2021 13:46
Forum: Dashticz
Topic: Dashticz - Center Button Image (icon)
Replies: 7
Views: 807

Re: Dashticz - Center Button Image (icon)

Os: Raspberry pi OS newest version.
Browser: Chrome & Chromium newest versions.

Config.js

var config = {}
config['domoticz_ip'] = 'http://192.168.0.192:8080';
config['app_title'] = 'Dashticz V3';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['user_name ...
by darkville
Friday 16 April 2021 10:36
Forum: Dashticz
Topic: Dashticz - Center Button Image (icon)
Replies: 7
Views: 807

Re: Dashticz - Center Button Image (icon)

Lokonli wrote: Thursday 15 April 2021 20:01 What's your Dashticz version?
Newest beta version.

Also here's what happens when using your code:
Image
by darkville
Thursday 15 April 2021 19:31
Forum: Dashticz
Topic: Dashticz - Center Button Image (icon)
Replies: 7
Views: 807

Re: Dashticz - Center Button Image (icon)


I guess you just want to show an image within the button.

I would recommend the following block definition:

blocks['media'] = {
btnimage: 'img/radio.png',
width: 1,
}


(The image parameter is used for the icon style images at the left side of the block)

Add it to a column with:

columns[1 ...
by darkville
Thursday 15 April 2021 13:37
Forum: Dashticz
Topic: Dashticz - Center Button Image (icon)
Replies: 7
Views: 807

Dashticz - Center Button Image (icon)

How do I center the icon from a button?

Code: Select all

buttons.page7 = { key: "media", width:1, isimage: true, image: "radio.png", slide:8};

Code: Select all

.button[data-id='media'] {
 height: 90px;
 text-align: center;
}