Giter VIP home page Giter VIP logo

iobroker.jsonconfig-demo's People

Contributors

dependabot[bot] avatar foxriver76 avatar germanbluefox avatar mcm1957 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

iobroker.jsonconfig-demo's Issues

example for returning more than 1 value for native

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.

width nit working correctly in tables

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!!

Error in GUI! (..../#tab-instances/config/system.adapter.jsonconfig-demo.0)

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)

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.