mcm4iob / iobroker.jsonconfig-demo Goto Github PK
View Code? Open in Web Editor NEWDEMO ONLY repository
License: MIT License
DEMO ONLY repository
License: MIT License
can you please add an example for returning more than one value via native?
I have 4 values in the config page to be set by returning them from a function in sendTo.
in jsonUIconfig I have:
"mqttUserId": {
"type": "text",
"label": "mqtt userId",
"newLine": false
},
"mqttUserName": {
"type": "text",
"label": "mqtt user name",
"newLine": false
},
"mqttPwd": {
"type": "text",
"label": "mqtt pwd",
"newLine": true
},
"mqttClientId": {
"type": "text",
"label": "mqttClientId",
"newLine": false
},
"_create": {
"type": "sendTo",
"label": "Create Login Data",
"command": "create",
"variant": "outlined",
"useNative": true,
"jsonData": "{\"user\": \"${data.mqttUserName}\", \"pass\": \"${data.mqttPwd}\"}}"
}
and in the message portion I have
const resultFromFunction = {
native: {
mqttUserId: '1232445564356',
mqttUserName: 'login.User',
mqttPwd: 'login.Password',
mqttClientId: 'login.clientID'
}
};
this.sendTo(obj.from, obj.command, resultFromFunction, obj.callback);
after returning the message only the last value is modified in the config page of the adapter.
If I reduce it to one value, it is running OK.
looks like width isn't really working in tables. Same in my adapter. I tried "50%"; "50% "; 300; "300px"; "300px " .... everything not changing anything
BTW: Great idea to have this type of demo adapter!!
Add #include examples
Add accordion example
Add examples for Include usage
occurred at opening of tab_3
instrument.ts:124 TypeError: G is not a function
at KeyboardDateInput.js:32:10
at Fi (react-dom.production.min.js:167:137)
at Ps (react-dom.production.min.js:193:57)
at oa (react-dom.production.min.js:294:275)
at ra (react-dom.production.min.js:280:389)
at Jc (react-dom.production.min.js:280:320)
at ml (react-dom.production.min.js:280:180)
at iu (react-dom.production.min.js:271:88)
at bs (react-dom.production.min.js:268:429)
at Ln (scheduler.production.min.js:13:203)
at MessagePort.Gn (scheduler.production.min.js:14:128)
Check whther selectSendTo is implemented.
Passwords are only visible during adding new value
Add such an hint
Adapter liks to admin changes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.