FlowFuse / node-red-dashboard

https://dashboard.flowfuse.com
Apache License 2.0
176 stars 42 forks source link

Feature: add option to disable tooltips #504

Open mman opened 7 months ago

mman commented 7 months ago

Description

Hi guys, I'm building new dashboards with dashboard 2 and so far looks very promising and beautiful. Thanks for doing great work, hope to be able to contribute as well.

I am deploying my dashboards to touch screens with enabled screen blanking and when I come back to tap the screen to wake up, I frequently tap a control that presents a tooltip. On the touch screen it does not look good (too small) and is hard to get rid of.

I'd prefer an option to disable the tooltip, or have the ability to override it with incoming msg so that I can disable it when not needed...

Not sure if the functionality is already available, did not find it in the docs.

If you point me in the right direction, I'd love to open a PR to address this. Thanks Martin

Have you provided an initial effort estimate for this issue?

I am not a FlowFuse developer

mman commented 6 months ago

For anybody looking to address this until the proper solution is ready, I was able to address this by adding a UI Scoped ui-template node with the following code:

<template>
</template>

<script>
    export default {
        mounted() {
          Chart.defaults.plugins.tooltip.enabled = false;
        },
    }
</script>

<style>
</style>