question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: HTML message in Simple Dialogs

See original GitHub issue

Feature Request

Would like to be able to use html strings as the message for the simple dialogs for the TdDialogService. Would allow use of bold () and line breaks (
) and others in the message.

ex

openConfirm(): void {
    this._dialogService.openConfirm({
      message: '<b>This</b> is how simple it is to create a confirm with this wrapper service.<br>br>Do you agree?',
      disableClose: true | false, // defaults to false
      viewContainerRef: this._viewContainerRef, //OPTIONAL
      title: 'Confirm', //OPTIONAL, hides if not provided
      cancelButton: 'Disagree', //OPTIONAL, defaults to 'CANCEL'
      acceptButton: 'Agree', //OPTIONAL, defaults to 'ACCEPT'
    }).afterClosed().subscribe((accept: boolean) => {
      if (accept) {
        // DO SOMETHING
      } else {
        // DO SOMETHING ELSE
      }
    });
  }

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
kyleledbettercommented, Aug 29, 2017

i wonder at what point we need to draw the line for “simple” dialogs, and just use the material dialog API for things like HTML templates https://material.angular.io/components/dialog/overview

1reaction
webpleasecommented, Feb 4, 2019

+1 on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Dialog element - HTML: HyperText Markup Language
The <dialog> HTML element represents a dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.
Read more >
[Feature Request] Programmatically Dialogs #3037 - GitHub
Is there any plans to implement programmatically dialogs like that? ... this.$dialog.alert('Everything looks fine!') or this.$dialog.alert({ title ...
Read more >
Replace JavaScript Dialogs With the New HTML Dialog Element
Here's how to replace JavaScript dialogs with the HTML dialog element with the same functionality as the alert(), confirm(), and prompt() ...
Read more >
Dialogs - Material Design
A dialog is a type of modal window that appears in front of app content to provide critical information or ask for a...
Read more >
Feature requests - Please read before requesting something
This is a request to force all dialogs to be displayed within the current desktop's size, or at least force the edge of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found