Feature: #70531 - RequireJS module for split buttons
See forge#70531
Description
A RequireJS module for split buttons has been added. The module can be used in another RequireJS modules to add callbacks being executed before the submit takes place. As the callback receives the click event, the submit can be modified, e.g aborting the submit.
Impact
To use the Split
module, include it in your own RequireJS module:
define('Vendor/Ext/Module', ['TYPO3/CMS/Backend/SplitButtons'], function(SplitButtons) {
// Your code...
});
Copied!
Callbacks will be added by calling Split
:
SplitButtons.addPreSubmitCallback(function(e) {
// Code being executed as callback before submit
});
Copied!