Displaying Multiple Primary Buttons on Custom Dialog

How to Display multiple Primary Buttons(Save,Submit,Cancel ) on the same custom Dialog ?
I have used set_primary_action function but it is allowing either Save or Submit button on a Dialog

I don’t think there is a method for that. You will have to inject your own button via Javascript