View source: R/fw_helpers_external.R
load_announcements | R Documentation |
Reads and parses application announcements configurations in config/announce.yaml
, then display announcements in
application header.
load_announcements(
announcements_file_path = NULL,
announcement_location_id = "announceAlert"
)
announcements_file_path |
The path to announcements configuration file. |
announcement_location_id |
Announcement target location div id (default = "announceAlert") |
If announce.yaml does not exist or contains invalid configurations. Nothing will be displayed. Closing announcements is caller application responsibility
number of seconds an announcement should be staying in caller application
periscope2:announcementConfigurationsAddin()
load_announcements(system.file("fw_templ/announce.yaml", package = "periscope2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.