I studied the contents of the link, but the treelist is not visible.
TreeList Widget : Node-RED
node-red/60-link.html at master · node-red/node-red · GitHub
Below is my code.
<script type="text/html" data-template-name="api-gui">
<div class="form-row node-input-link-row"></div>
</script>
...
oneditprepare: function() {
let treeList;
treeList = $("<div>")
.css({width: "100%", height: "100%"})
.appendTo(".node-input-link-row")
.treeList({});
treeList.treeList('data',[{label:"Colours", id:'my-red-item'}]);
setTimeout(function() {
treeList.treeList('show', 'my-red-item');
}, 100);
}
...
I ran it even without setTimeout, but I don't see it.
Did I write something wrong?
Please, give me a solution.