JS Compiler: Return text representation
Opened this issue · 2 comments
vlapchenko commented
Please, add to JS Compiler an ability to get a text representation of created DOM element object.
itadapter commented
Why do you need it, example?
vlapchenko commented
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' });