Hello,
i have a deep inside 'widget editor' question.
There a two possible ways to code a widget:
1. Using [{
Name: 'Weather Underground Widget',
Author: 'Generoso Martello',
...
RenderView: function (cuid, module) {...}
}
2.) $$.widget = {
name: 'Generic Color Light',
version: '1.2',
...
};
Using version number one i can easily use multiple popups beside the pure edit popup like configuration, info and others
>> example taken from timetable widget
<div class="hg-popup-a" data-ui-field="controlpopup" data-dismissible="false" data-position-to="window" data-transition="pop" data-overlay-theme="b">....<>
<div class="hg-popup-a" data-ui-field="helppopup" data-position-to="window" data-dismissible="false" data-transition="pop" data-overlay-theme="b"> .... <>
<div class="hg-popup-a" data-ui-field="calendarpopup" data-position-to="window" data-dismissible="false" data-transition="pop" data-overlay-theme="b"> ....<>
I can assign these popups with
this.ControlPopup = container.find('[data-ui-field=controlpopup]').popup();
this.HelpPopup = container.find('[data-ui-field=helppopup]').popup();
this.CalendarPopup = container.find('[data-ui-field=calendarpopup]').popup();
With version number 2 i can't find an assignment part for popups inside code. There is only an event call like this
$$.field('options').on('click', function (){
$$.popup.popup('open');
...
});
I would like to open an additional information popup, but all i tried does not show this second popup despite the fact i have done all correctly inside html and using jQuery or normal Js synthax.
Is there a hardcoded limitation for only one popup per widget using the version 2 coding approach? If not, how can i show second popup?
Using alert dialog is not an alternative!
Thanks for a hint
Wolfgang