[closed] Issue in displaying dynamic content in webui popover
Popover User (11●1)
| asked Mar 14 '18, 9:35 a.m.
edited Mar 14 '18, 11:48 a.m. by Ralph Schoon (63.5k●3●36●46) On a button click , i need to show dynamic content in webuipopover ,based on the input values in the form.
lengthyFunction() is fetching the dynamic data based on the inputs.
On first click it is showing correct data.
When the button is clicked after changing the input values, a different result is expected.
but webuipopover shows the old data.
When the button is clicked again, it is showing correct data in webuipopover.
Please help me to ensure the visibility of popover only after completing a lengthy function call.
Eg code:
jquery(selector).webuiPopover({
closeable:true,
type:'async',
cache:false,
content: function() {
lengthyFunction();
return jquery('.className').html();
}
});
|
Comments
This question is not related to any tool in the products list to the top left.
I close it as off topic.