Actions let you share handlers, configuration and updates across Toolbar, Button and Menu components.
The js is not minified so it is readable. See actions.js.