Git Product home page Git Product logo

Comments (3)

joepavitt avatar joepavitt commented on July 3, 2024 1

So, two options here, neither are which support now, but would be easy for us to add:

  1. We add a "URL" property to the button, to support this natively on the button itself.
  2. We support, in ui-control, the ability to pass an external link/path to ui-control, which would navigate the user to that given link.

I think I'm favouring 2 as it's more generalised solution, doesn't over populate ui-button with options, and is consistent with a more general "node-red" user pattern, as in, some button clicks could navigate you to another page, some external, some trigger something completely different

from node-red-dashboard.

hotNipi avatar hotNipi commented on July 3, 2024

But if the reason to not use ui_template is only that the button doesn't look like default UI_button, then it is just to apply necessary classes to it.

<template>
    <v-btn 
        href="https://www.google.com"
        target="_blank"
        elevation="0"
        class="v-btn v-btn--block v-theme--nrdb v-btn--density-default v-btn--size-default v-btn--variant-flat"
    >
    Navigate to Google
    </v-btn>    
</template>

from node-red-dashboard.

joepavitt avatar joepavitt commented on July 3, 2024

I have a PR on it's way for this with (2) implemented fwiw :)

from node-red-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.