How to give left and right margin?
this happened after I updated ui-dashboard to version 3.2.3
Assuming you are using the notification node this works
msg.payload = `<!DOCTYPE html>
<html><head>
<title>Save Confirmation</title>
</head>
<body>
<div style = "padding: 0 0.5em 0 0.5em">
<p> Are you sure you want to save data? </p>
</div>
</body>
<style>
.md-title {
padding: 0 0.5em 0 0.5em;
}
</style>
</html>`;
return msg;
[{"id":"dd715df23483c35a","type":"ui_toast","z":"cbf497889c72d4b4","position":"dialog","displayTime":"0","highlight":"","sendall":false,"outputs":1,"ok":"OK","cancel":"Cancel","raw":true,"className":"","topic":"Save Confirmation","name":"","x":1530,"y":940,"wires":[[]]},{"id":"f4d2d33726516220","type":"function","z":"cbf497889c72d4b4","name":"Format Payload for notification node","func":"msg.payload = `<!DOCTYPE html>\n <html><head>\n <title>Save Confirmation</title>\n </head>\n <body>\n <div style = \"padding: 0 0.5em 0 0.5em\">\n <p>Are you sure you want to save data?</p>\n </div>\n </body>\n\n <style>\n .md-title {\n padding: 0 0.5em 0 0.5em;\n }\n </style>\n </html>`;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1270,"y":940,"wires":[["dd715df23483c35a"]]},{"id":"bd7352d782113344","type":"inject","z":"cbf497889c72d4b4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1000,"y":940,"wires":[["f4d2d33726516220"]]}]
It's work, thank you
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.