AddNetworkTab: Add a network tab in the body.

Description Usage Arguments Value

View source: R/functions.R

Description

Add a network tab in the body.

Usage

1
2
3
4
AddNetworkTab(tabId, mainTitle, introText, paramTitle = "Parameters",
  paramList, paramBoxWidth = 3, plotTitle = "Plot", plotList,
  plotBoxWidth = 9, plotHeight = "500px", sizeId, sizeList, colorId,
  colorList, opacityId)

Arguments

tabId

A unique id to identify the tab.

mainTitle

The header of the tab.

introText

The introduction of the tab.

paramTitle

The title of the input parameters box. (optional)

paramList

The input widgets of the plot.

paramBoxWidth

The width of the input parameters box. (optional)

plotTitle

The title of the plot box. (optional)

plotList

The plot of the tab.

plotBoxWidth

The width of the plot box. (optional)

plotHeight

The height of the plot in px. (optional)

sizeId

A unique id to identify size input.

sizeList

A named list of drop-down options for size of nodes. Values should be column names of input data.

colorId

A unique id to identify color input.

colorList

A named list of drop-down pptions for color of nodes. Values should be column names of input data.

opacityId

A unique id to identify opacity input.

Value

HTML code snippet to add a network tabItem to main body with 3 boxes: * An introduction box * An input parameters box * A plot box


urwa/shinyscaffold documentation built on May 25, 2019, 8:28 p.m.