This is a migrated thread and some comments may be shown as answers.

DialogService open content with html

1 Answer 1377 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jacky
Top achievements
Rank 1
Jacky asked on 01 Feb 2018, 09:20 PM
Is it possible to use DialogService to open a confirmation box and specify the content with html tags without using template reference or component?

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 02 Feb 2018, 11:55 AM
Hi Jacky,

The specifics of the Angular framework necessitates the content of the component to be compiled in order to be rendered as HTML in the page. This is why HTML markup can be provided as a TemplateRef or a separate component only. The only content that can be passed to the "content" property and directly displayed on the page is a string.

Examples on using a template or a component are available in the following section of our documentation (maybe you went through them already, but just in case):

https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-rendering-the-content

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Jacky
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or