Title
Info

Introduction

If you add <hhl-util/> to your "app" page, you vill get a global dialog, Snack/Alert and a EventBus that can be used on all pages.
Please see Introduction for util.

Standard

The dialog is a simpel confirmation with a Title, Text and 2 buttons with "OK" and Cancel.
It return a promise with true (OK) or false (cancel).

Change Text & Color on buttons

By adding a "buttons" property to the dialog call, you can change the Text and Color of the buttons

The syntax is: {ok: { Text: 'OK', Color: 'bg-pri' }, cancel: { Text: 'CANCEL', Color: 'bg-sec' }}

The theme colors are bg-pri bg-sec bg-ok bg-err bg-warn bg-info bg-black bg-white