A custom action can be assigned to a notification as well. By default, all notifications can be swiped to close them. You can also set an `autoclose` attribute equal to a number (measured in milliseconds) to have the notification disappear after the specified amount of time. Please note that due to dynamic DOM insertion and animations, we recommend an autoclose value of at least 1000ms.
The static method is best used for prototyping since it doesn't involve any programming.
You can create a Static Notification with this basic HTML:
This notification is static, it works similarly to a programmatic with some subtle differences.
The Foundation Api service is pretty useful, one function of it is to send information from directives, controllers, and other parts to other directives, controllers, etc. It's a messaging system for the entire application.
You can create a Dynamic Notification with this basic HTML:
And then send it a notification with via FoundationApi:
You can also use the `zf-notify` directive for simpler messages and prototyping:
On top of setting a title and content, you can also set: