mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 10:12:49 +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> |
||
---|---|---|
.. | ||
admin | ||
base | ||
components | ||
foundation | ||
select-kit | ||
d-editor.scss | ||
input_tip.scss | ||
printer-friendly.scss | ||
topic-entrance.scss | ||
topic-timeline.scss |