-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Iterate through sub items #1102
Copy link
Copy link
Closed
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Description
Activity
Metadata
Metadata
Assignees
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
I have a json file that looks like this:
{ "name": "Generic Dimmer", "shortName": "Dimmer", "manufacturer": "Generic", "channels": [ { "type": "intensity", "name": "Intensity", "max": 255, "min": 0, "displayMax": 100, "displayMin": 0, "default": 0, "dmxAddress": 0, "value": 0, "displayValue": 0 } ] }I was able to import the file and access props such as
name,shortName, andmanufacturer, but I'm having trouble looping through thechannelarray.This is what I've tried so far: