Skip to content

How to close dialog and sheet #520

Answered by Georg632
koalacapek asked this question in Q&A
Discussion options

You must be logged in to vote

BrnDialogCloseDirective

Add BrnDialogCloseDirective to your imports and add the selector to your button:

      <button
        hlmBtn
        brnDialogClose
        type="submit">
        Save changes
      </button>

By Code

Add template reference or use viewchild to gain access to the dialog:
<hlm-dialog #dialog>
Use close function:

      <button
        hlmBtn
        (click)="dialog.close({})"
        type="submit">
        Save changes
      </button>

Sheet is basically the same, just different names.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@goetzrobin
Comment options

@Georg632
Comment options

@goetzrobin
Comment options

Answer selected by goetzrobin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants