Goodmorning,
I would like to disable showing a new tab or popup when clicking on the news block.
Also disable opening a new tab when clicking on a frame block. (buienradar)
Is this possible?
Disable opening new tab or pop-up when clicking block
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 2290
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Disable opening new tab or pop-up when clicking block
assume you've defined your block in CONFIG.js via:
then you can disable handling of click events by adding the following to custom.css:
or,
add the addClass block parameter:
and add the following to custom.css:
Both methods also work for frames.
Code: Select all
blocks['news'] = {
...
}
Code: Select all
[data-id="news"].dt_block {
pointer-events: none
}
add the addClass block parameter:
Code: Select all
blocks['news'] = {
addClass: 'noclick',
....
}
Code: Select all
.noclick {
pointer-events: none
}
-
- Posts: 15
- Joined: Thursday 09 August 2018 15:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Disable opening new tab or pop-up when clicking block
Thanks! that worked!
Who is online
Users browsing this forum: No registered users and 1 guest