I am using ui-component form edit and would like to add custom button "customButton" with all post data. However, it doesn't post any data except form key.
My code
$data = [
'label' => __('Print Address'),
'class' => 'save',
'data_attribute' => [
'url' => $this->urlBuilder->getUrl('*/*/printAddress', ['id' => $this->getRequest->getParam('id')]);
],
'sort_order' => 80,
];