mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
* 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> |
||
---|---|---|
.. | ||
common | ||
desktop | ||
mobile | ||
vendor | ||
admin.scss | ||
common.scss | ||
desktop_rtl.scss | ||
desktop.scss | ||
embed.scss | ||
mobile_rtl.scss | ||
mobile.scss | ||
wizard.scss |