aumcode / nfx

C# Server UNISTACK framework [MOVED]
https://github.com/agnicore/nfx
Other
389 stars 93 forks source link

JS Compiler: Return text representation #48

Open vlapchenko opened 7 years ago

vlapchenko commented 7 years ago

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

itadapter commented 7 years ago

Why do you need it, example?

vlapchenko commented 7 years ago

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' });