load_announcements {periscope2}R Documentation

load_announcements

Description

Reads and parses application announcements configurations in config/announce.yaml, then display announcements in application header.

Usage

load_announcements(
  announcements_file_path = NULL,
  announcement_location_id = "announceAlert"
)

Arguments

announcements_file_path

The path to announcements configuration file.
Use announcementConfigurationsAddin to generate that file.

announcement_location_id

Announcement target location div id (default = "announceAlert")

Details

If announce.yaml does not exist or contains invalid configurations. Nothing will be displayed. Closing announcements is caller application responsibility

Value

number of seconds an announcement should be staying in caller application

See Also

periscope2:announcementConfigurationsAddin()

Examples

    load_announcements(system.file("fw_templ/announce.yaml", package = "periscope2"))


[Package periscope2 version 0.2.3 Index]