Notifications support

If app integrates JSF notifications support, you can trigger notifications directly from JSF.

To trigger notification from $eval you can call:

$form.runOnNotificationHook({
        level: 'info' | 'success' | 'warn' | 'error',
        message: 'meow'
});

If calling from onClick you can also use showNotification action.

Example usage inside onClick, but you can easily call it from any $eval:

onClick: {
    $eval: `
    $form.runOnNotificationHook({
        level: 'info',
        message: 'Hello!'
    });
    `
}

Integrating in you Angular

You only need to add extra input when calling JSF angular component. For example:

<jsf-page   [onNotification]="onNotificationHandler"
            [jsfDefinitionProvider]="jsfDefinitionProvider"
            [pageBuilder]="jsfPageBuilder">

Last updated

Was this helpful?