msg | string, tag message |
options | Object tag options |
xxxxxxxxxx
let tooltip = w2utils.tooltip('Some long html that can have special characters !@#$%^&*()_', {
className: 'w2ui-light',
maxWidth: 200
})
let html = `<input style="margin: 50px" ${tooltip}>`
$('body').html(html)