HC200ok / vue3-easy-data-table

A customizable and easy-to-use data table component made with Vue.js 3.x
MIT License
536 stars 105 forks source link

Access array within items object #365

Closed RyIot3329 closed 5 months ago

RyIot3329 commented 5 months ago

I am having trouble accessing an array index inside the "items" objects. I have a structure like:

"items": [ { "channels": [ { "config": { "load_color_temp": 0, "load_config": "1200mA Constant Current", "max_out": 100, "min_out": 0, "mode": "never", "zero_setting": 0.6 }, "current": 1.116, "dc_disconnect_enabled": true, "id": 1, "ieee_class": "UNKNOWN", "nominal_signature_resistor_value": "UNKNOWN", "port_id": 1, "power": 52.575, "power_enabled": true, "sig_resistor_value": 0, "sig_resistor_value_raw": 0, "state": { "detection_status": "TOO_LOW", "level": 0.6842619745845582, "on": true, "raw_level": 248, "scaled_level": 100 }, "voltage": 47.11, "xpoe_capable": true, "xpoe_class": "UNKNOWN", "xpoe_mode_active": true }, { "config": { "load_color_temp": 0, "load_config": "Visiolite Strips (48V Config) Auto", "max_out": 90, "min_out": 1, "mode": "never", "zero_setting": 0.9 }, "current": 0.743, "dc_disconnect_enabled": true, "id": 2, "ieee_class": "UNKNOWN", "nominal_signature_resistor_value": "UNKNOWN", "port_id": 1, "power": 35.939, "power_enabled": true, "sig_resistor_value": 0, "sig_resistor_value_raw": 0, "state": { "detection_status": "TOO_LOW", "level": 0.9775171065493566, "on": true, "raw_level": 245, "scaled_level": 100 }, "voltage": 48.37, "xpoe_capable": true, "xpoe_class": "UNKNOWN", "xpoe_mode_active": true } ], "color_temp": 0, "id": 1, "physical_port_level": 100, "power": 88.514 },

How can I access the array items in "channels"?