I use a split button with some hardcoded added key/value pairs. It works fine.
But I would like to add items programmatically (I have an array of key/value pairs).
I tried to replace the items in the object by myself, but then they are missing their commands, so there is no click-action if I do it that way.
this.splitbuttonAddFeature.items = ${result}.map(i => {
return { label: i, id: i }
})