I have one my admin grid in that edit time i add button in top action bar now in that on click i need to set custom action of controller
i try this but not working
$this->buttonList->add(
'convert',
[
'class' => 'reset',
'label' => __('Convert B2bCustomer'),
'onclick' => 'setLocation(\'' . $buttonUrl . '\')'
],
11
);