Comments (3)
So, two options here, neither are which support now, but would be easy for us to add:
- We add a "URL" property to the button, to support this natively on the button itself.
- We support, in
ui-control
, the ability to pass an external link/path toui-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.
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.
I have a PR on it's way for this with (2) implemented fwiw :)
from node-red-dashboard.
Related Issues (20)
- New Nodes: In/Out User-Specific Context Store HOT 2
- ui-dropdown - topic is lost when using Accept Client Data
- ui-dropdown - Dropdown shows "No options available" when options are provided dynamically HOT 6
- File Input: Add examples HOT 2
- Updating to @flowfuse/[email protected] a bug occurred in "ui-group node" HOT 24
- ui-dropdown - Not parsing `options` when widget is reload based on message `widget-load` HOT 1
- Third-party nodes not loading when Dashboard hosted on proxy HOT 3
- Form widget - layout shift when required input field shows the message "<name> is required"
- Option to get `socketIp` via custom headers HOT 2
- Export from db to CSV and download HOT 3
- Icons on dashboard 2 HOT 3
- Dashboard Sheduler UI HOT 4
- UI-Slider: Visual/Display issue when `Thumb` is set to `Always` HOT 7
- ui_template scope does not clean up on configuration change. HOT 3
- UI-Template: Should give error if invalid `page`/ `ui` is selected HOT 1
- Proposal: CSS quick&small fixes to make whole site more pleasant HOT 4
- ui_button stores the msg sent to it. HOT 2
- Yet Another PWA Hang - after dashboard (or node red) update
- Users are unable to create devices from the Application devices page HOT 2
- Users that navigate to / land on a blank page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-dashboard.