nfx icon indicating copy to clipboard operation
nfx copied to clipboard

JS Compiler: Return text representation

Open vlapchenko opened this issue 8 years ago • 2 comments

Please, add to JS Compiler an ability to get a text representation of created DOM element object.

vlapchenko avatar Apr 05 '17 09:04 vlapchenko

Why do you need it, example?

itadapter avatar Apr 05 '17 12:04 itadapter

In WAVE some functions require html-content as parameter. For example, showConfirmationDialog(title, content, buttons, callback, options):

WAVE.GUI.showConfirmationDialog(
    'Action confirmation',
    '<div>Are you sure you want to approve this action?</div><br />'+
     '<div class="divWarnIrreversible">The action can't be reversed!</div>", // html-content
            [WAVE.GUI.DLG_YES, WAVE.GUI.DLG_NO],
            function (sender, result) {
              ...
            },
            { btnCls: 'uiSmallButton' });

vlapchenko avatar Apr 10 '17 10:04 vlapchenko