Filter by title
There is a newer version of this document!

Alerts

Introduction

abp-alert is a main element to create an alert.

Basic usage:

<abp-alert alert-type="Primary">
    A simple primary alert—check it out!
</abp-alert>

Demo

See the alerts demo page to see it in action.

Attributes

alert-type

A value indicates the type of the alert. Should be one of the following values:

  • Default (default value)
  • Primary
  • Secondary
  • Success
  • Danger
  • Warning
  • Info
  • Light
  • Dark

Example:

<abp-alert alert-type="Warning">
    A simple warning  alert—check it out!
</abp-alert>

A value provides matching colored links within any alert.

Example:

<abp-alert alert-type="Danger">
    A simple danger alert with <a abp-alert-link href="#">an example link</a>. Give it a click if you like.
</abp-alert>

dismissible

A value to make the alert dismissible.

Example:

<abp-alert alert-type="Warning" dismissible="true">
    Holy guacamole! You should check in on some of those fields below.
</abp-alert>

Additional content

abp-alert can also contain additional HTML elements like headings, paragraphs and dividers.

Example:

<abp-alert alert-type="Success">
    <h4>Well done!</h4>
    <p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p>
    <hr>
    <p class="mb-0">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>
</abp-alert>

Contributors


Last updated: March 19, 2020 Edit this page on GitHub

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

ABP Community Talks
AI-Powered .NET Apps with ABP & Microsoft Agent Framework
18 Dec, 17:00
Online
Register Now
ABP Live Webinar
Webinar Calendar Webinar Calendar
Discover
ABP Platform
Register Now
Dec 17
Wednesday,
17:00 UTC
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.