11 New User Notifications
Select a tab above to activate This blank page message helps protect your privacy, or you can show the first message here automatically through settings page
- Melissa Ayre INBOX Re: New security codes Hello again and thanks for being part... 56 seconds ago
- Adison Lee Msed quia non numquam eius 2 minutes ago
- Oliver Kopyuv Msed quia non numquam eius 3 days ago
- Dr. John Cook PhD Msed quia non numquam eius 2 weeks ago
- Sarah McBrook Msed quia non numquam eius 3 weeks ago
- Anothony Bezyeth Msed quia non numquam eius one month ago
- Lisa Hatchensen Msed quia non numquam eius one year ago
-
Administrator UPDATE System updated to version 4.6.3 (patch notes) 5 mins ago
-
Adison Lee replied to your video Cancer Drug Bring to the table win-win survival strategies to ensure proactive domination. At the end of the day... 10 minutes ago
[your date here]
|
||||||
---|---|---|---|---|---|---|
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
30 | 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 | 1 | 2 | 3 |
2:30PM - Doctor's appointment
3:30PM - Report overview
4:30PM - Meeting with Donnah V.
5:30PM - Late Lunch
6:30PM - Report Compression
- SmartAdmin
- PHP Components
- Controls
- Alert
PHP Controls Bootstrap controls for PHP
\Bootstrap\Components\Alert
Code
$alert = new \Bootstrap\Components\Alert('Your transaction has been successfully processed! Thank you for your purchase :)', 'success');
$alert->class('m-0');
$alert->printHtml();
Result
Documentation
\Bootstrap\Components\Alert
A component that enables you to easily write <div.alert>
control through PHP.
Usage
Instantiate the Alert
by passing a content
and type
.
$alert = new \Bootstrap\Components\Alert('Your transaction completed successfully', 'success');
// continued below...
Options
Alert::options
Option | Default | Description |
---|---|---|
dismissible |
true |
If the alert is dismissible |
Example:
// during init
$alert = new \Bootstrap\Components\Alert('Your transaction completed successfully', 'success', ['dismissible' => false]);
// after init
$alert->options('dismissible', false);
Other properties
Alert::content
- The content of the alertAlert::class
- Sets theclass
attribute
Styling
To learn more about styling the <div.alert>
, see UI Alerts demo.
Finally, once you configured your alert, you can now htmlPrint
it!
$alert->printHtml();
Credits
\Bootstrap\Components\Alert
is part of the lodev09/bootstrap-php package created by @lodev09.