I can tell you how to make ex-post-facto changes after your initialization is complete, but for this, the constructor will require a fundamental change to the jQuery user interface library, which is quite possible, of course, with open source code. Functionality is not currently provided to you.
Instead, I propose the following, which will make the necessary changes after the dialog is initialized:
$('.myDialogSelector').parent() .find('span.ui-button-text:contains("OriginalNameFromKey")') .html("New Button Text");
See the working script here .
Can I find out why the constructor format has any meaning for you? I find it difficult to imagine the features of use. The way you build your buttons mapping seems very good.
source share