Comments (4)
Okay, so here you're injecting a timestamp, which is registered as an "invalid payload value", and reported as a warning in the debug console when running your flow.
If I remove the msg.payload
it does run correctly and update live as expected.
Our check against the class
value happens before the custom onInput
handler that ui-switch
has, and so the server-side store is updated, even though the msg
never actually makes it to the client-side.
Not sure how I can handle this better, I can't move hte checks to after, as some custom event handlers send on messages, etc. so they'll never get to the remaining code
from node-red-dashboard.
We do not have good E2E test coverage on this topic though, so tomorrow morning I'll sweep across all of the widgets and ensure we have coverage to check for dynamic class injections
from node-red-dashboard.
Sorry, I did not pay attention to the debug console.
If I understand you correctly, the widget should ignore the unnecessary property ?
I changed the code to
var newMsg={};
newMsg.class ="my_switch_class";
return newMsg;
or
msg.class = "my_switch_class";
delete msg.payload;
return msg;
and it works as expected.
any idea howto change icon and icon color ?
from node-red-dashboard.
any idea how to change icon and icon color?
If you select "Custom Icon" in the config, you can control that here:
![Screenshot 2024-05-24 at 08 20 37](https://private-user-images.githubusercontent.com/99246719/333491658-1e38f5d6-fc65-485b-9d57-332ffcb8ebe5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNzI2NDcsIm5iZiI6MTcyMTA3MjM0NywicGF0aCI6Ii85OTI0NjcxOS8zMzM0OTE2NTgtMWUzOGY1ZDYtZmM2NS00ODViLTlkNTctMzMyZmZjYjhlYmU1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDE5MzkwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY5NTZjOTQ2M2IwZmVlMjNkNTFhMTJjNzlhZTM2MzgwNGQzZjJmNTUwMDhjODE0NWMzMjJjN2ZmYTQ5NmFmMTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZMAJms_0NeUmHu65AqEO7qWy4JnxAR_RkjlRm9HPcXs)
from node-red-dashboard.
Related Issues (20)
- resizing ui-button doesn't work HOT 2
- Widget ordering in subflows
- UI Slider - Text Field Input
- Support for "v-bind" in <style>
- UI Chart - Ensure consistency in mapping chart series to colours
- Statestore not available in third-party ui nodes HOT 2
- A couple of questions about ui_base.js HOT 2
- ui-form passing prepopulated and submit not clickable
- Chart widget - 2 y-axis's HOT 1
- UI Chart - Change config UI for multiple "Series" definitions HOT 1
- `ui-template` How to get a flow variable? HOT 5
- `ui-template` How to display ssh `journalctl -f` log? HOT 1
- How to use data tracker in third-party ui node HOT 6
- Removing ui-control node instance crash HOT 3
- UI Notification - Not positioning correctly HOT 1
- Documentation: Teleports example not working as suggested. HOT 2
- Mdi icon not appearing HOT 2
- Allow ui_update for output messages
- Theme: Compact View
- Inclusion of a zero sized template node in a group alters its size. HOT 4
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.