Browse Source

Html value render example added to Page-Alerts documantation

pull/16117/head
masumulu28 3 years ago
parent
commit
8512e6b41f
  1. 16
      docs/en/UI/Angular/Page-Alerts.md
  2. BIN
      docs/en/UI/Angular/images/page-alert-with-html-example.png

16
docs/en/UI/Angular/Page-Alerts.md

@ -61,4 +61,20 @@ this.service.show({
![angular-page-alert-with-params-example](./images/page-alert-with-params-example.png)
## Render HTML content
We can pass html content to `title` and `message` parameters
* It allows to both case static message and localization value
* [abpSafeHtml](https://github.com/abpframework/abp/blob/37b59a7f05202264505d002397dbb27d275740e1/npm/ng-packs/packages/core/src/lib/pipes/safe-html.pipe.ts#L6) pipe will sanitize html values
```typescript
this.service.show({
type: 'success',
title: `New <i><u>blog</u></i> published`,
message: 'AbpApp::HtmlMessageWithParams{0}',
messageLocalizationParams: ['admin'],
});
```
![angular-page-alert-with-html-example](./images/page-alert-with-html-example.png)

BIN
docs/en/UI/Angular/images/page-alert-with-html-example.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Loading…
Cancel
Save