bind Controller
Bind text selection controller to the toolbar. Text selection controller can be obtained via . When bound to the toolbar, the toolbar will automatically show items that are enabled or disabled, and introduce the business logic for handling each of the clicked menu item actions.
Parameters
text Selection Controller
Controller to be bound to the toolbar.