Using most of the different Button Controls is similar to what we did previously; each Button can be initially configured via a series of attributes, and those attributes can be easily set or obtained at any point in the script. As we saw in the previous example, using the custom events defined by each class is equally as simple.
Two Button types that we didn't cover in the last example were the Menu Button and Split Button types, both of which are highly specialized controls not available natively under HTML.
The Menu Button displays a Menu when it is clicked, allowing us to bundle up a series of related actions into a single Button
object. The Split Button is similar but its face is split into two sections—the Button itself and a drop-down that allows the Menu to be opened. We won't be looking at the Menu Button as it is simply what the Split Button has on its right-hand side.
By the end of the example, we'll have a page the same as shown in the following screenshot...