Sorry for not getting back to you until now. I've been sick for a few weeks. Thank you for your info!
I would like to follow your example. So far I've tried the following:
My Button:
<ion-button size="small" class="check" core-site-plugins-call-ws name="local_schultimer_comment_check" goBackOnSuccess="true" (onSuccess)="messagesUpdated()" [params]="{cid: <% id %>, susid: <% susid %>}">
My JavaScript:
const translate = key => this.TranslateService.instant(`plugin.local_schultimer.${key}`);
const observer = this.CoreEventsProvider.on('local_schultimer:messages-updated', () => this.refreshContent());
this.ngOnDestroy = () => observer.off();
and:
this.messagesUpdated = () => this.CoreEventsProvider.trigger('local_schultimer:messages-updated');
I load the files into the file mobile.php in the folders classes->output->mobile.php
return [
'templates' => [
[
'id' => 'main',
'html' => $html,
],
],
'javascript' => file_get_contents( __DIR__ . '/../../js/mobile/view_schultimer_list.js' ),
];
Can I load a second JavaScript file? This line:
this.messagesUpdated = () => this.CoreEventsProvider.trigger('local_schultimer:messages-updated');
is in another file and is not loaded.
Thank you very much for your help!