Feature Request: HTML message in Simple Dialogs
See original GitHub issueFeature 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:
- Created 6 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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
+1 on this.