spectre.console icon indicating copy to clipboard operation
spectre.console copied to clipboard

MultiSelectionPrompt allows adding children to a choice in a single call.

Open mudnug opened this issue 3 years ago • 0 comments

Similar to AddChoices() and AddChoice(), it would be convenient for MultiSelectionPrompt to support AddChildren() in addition to Add Child().

IMultiSelectionItem<T> AddChildren(IEnumerable<T> children) would allow adding child choices in a single call

--Update-- I went about trying to implement this feature and found AddChoiceGroup() appears to be intended for this purpose...

I believe the API feels inconsistent here, but perhaps what would have helped with discovery was an example on the docs site.

mudnug avatar Feb 18 '22 21:02 mudnug