Split button
SplitButtonControlOne click for the usual action, the caret for its alternatives.
Overview
SplitButtonControl is a Blazor split button: a click on the main half runs the usual action, and the caret opens a list of its alternatives. Use it when one action is the default and the rest are variants, such as Send reply with Send a copy to me or Add as internal note: one button replaces several in a crowded toolbar, and unlike a dropdown button the main half acts at once. The main half raises OnClick; a picked item raises OnItemClick with its Value.
Examples
#Default action with alternatives
Click the left half to send the reply, or the caret for its alternatives; each enabled entry carries a Value the handler reads, and Reply by chat is disabled. Mark the ticket solved and the whole button is Disabled.
- Reply to Albus Door on TKT-1042 is ready
#Custom main half and colors
Three tickets are waiting on the customer. Remind everyone with one click or one customer from the menu: the count is your own markup in the main half, Title names both halves, the items are rebuilt as people drop off, and Style sets the --fx-split-btn-* colors.
Still to remind: Ron Measly, Luna Goodlove, Neville Longbutton