genGallery: Generate gallery by only providing tab names

View source: R/spsUIcollections.R

genGalleryR Documentation

Generate gallery by only providing tab names

Description

A fast way in SPS to generate a gallery to display plot tab screenshots

Usage

genGallery(
  tab_ids = NULL,
  Id = NULL,
  title = "Gallery",
  type = NULL,
  title_color = "#0275d8",
  image_frame_size = 3,
  app_path = NULL
)

Arguments

tab_ids

a vector of tab IDs

Id

element ID

title

gallery title

type

If this value is not NULL, filter by tab type, and tab_ids will be ignored. One of c("core", "wf", "data", "vs"). use spsTabInfo() to see tab information

title_color

title color, common colors or hex code

image_frame_size

integer, 1-12

app_path

app path, default current working directory

Details

require a SPS project and the config/tabs.csv file. If you want to use gallery outside a SPS project, use spsComps::gallery

Value

gallery div

Examples

if(interactive()){
    spsInit()
    ui <- fluidPage(
        genGallery(c("plot_example1")),
        genGallery(type = "plot")
    )
    server <- function(input, output, session) {

    }
    shinyApp(ui, server)
}

systemPipeR/systemPipeShiny documentation built on Oct. 17, 2023, 3:40 a.m.