mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 13:12:45 +08:00
c25b8abd70
* FEATURE: allows plugins to add a global notice Usage: ``` api.addGlobalNotice(id, text, options = {}); ``` Options can be: ``` dismissable // Will display a button to hide the notice if true html // will prepend html to the next if present level // alert level, will usee css class of alert component persistentDismiss // if true won't show notice again on reload onDismiss // execute a custom action on dismiss visibility // defines custom logic for notice visibility ``` Co-authored-by: Robin Ward <robin.ward@gmail.com> |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |