Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the Page-Alerts document #7307

Merged
merged 1 commit into from
Jan 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/en/UI/Angular/Page-Alerts.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A page alert is useful for displaying an important message to the user. The ABP

You can simply import `PageAlertService` from `@abp/ng.theme.shared` and utilize it as follows:

```typescript
```js
import { PageAlertService } from '@abp/ng.theme.shared';

@Component({
Expand All @@ -30,7 +30,7 @@ export class MyComponent {

The method `show` accepts a single object that is type of `PageAlert`

```typescript
```js
export interface PageAlert {
type: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
message: string;
Expand All @@ -47,7 +47,7 @@ export interface PageAlert {
* `dismissible` (Optional): Default is `true`. If enabled, a button on the top right corner will be shown to the users so that they can dismiss the message.
* `messageLocalizationParams` and `titleLocalizationParams` (Optional): If the message and/or the title is a key for localization service and contains some parameters, these fields could be used to pass those parameters.

### An example with Localization
### An example with Localization

```typescript
this.service.show({
Expand Down