Greetings:
I am creating calcite-list-items in code. My desire is to assign the calcite icon to the calcite-list-item in code:
let item = document.createElement("calcite-list-item");
item.setAttribute("value", "This is my value");
item.setAttribute("label", "This is my label");
item.setAttribute("Description", "This is my description.")
item.setAttribute("icon", "layer");
anItemsContainer.appendChild(item);The calcite-list-items display with Label and Description, and a click event reveals the Value. But alas, no icon.
So my question is: How can I get that icon to display in code.
TIA