WebHare community

Add close button to dialog

What’s the best way to add a close button to the

import * as dialog from 'dompack/components/dialog';
import * as dialogapi from 'dompack/api/dialog';

APIs, so the dialog can also be closed with a (styled) close button?

can’t just setup whatever element you need and bind it to dialog.resolve() ?

see also https://gitlab.com/webhare/dompack/dompack/blob/master/doc/dialogapi.md#invoking-a-dialog

Thanks, that’ll do!