ContentElement: Content Element

Description Methods

Description

Content Element

Methods

new(id, title, ..., session = shiny::getDefaultReactiveDomain, footer = NULL, closeable = FALSE, collapsible = TRUE, width = 12, height = NULL, tabPanel_list = NULL)
id The content element's id.
title Title for the tabBox.
... tabPanel elements to include in the tabset.
session
footer Footer below the tabBox.
closeable If TRUE, the content element is closeable.
collapsible If TRUE, the content element is collapsible.
width The width of the box, using the Bootsgrap grid system. This is used for row-based layouts. The overall width of a region is 12, so the default valueBox width of 4 occupies 1/3 of that width. For column-based layouts, use NULL for the width; the width is set by the column that contains the box.
height The height of a box, in pixels or other CSS unit. By default the height scales automatically with the content.
tabPanel_list Instead of using the ... argument for passing tabPanel elements, you may pass a list of tabPanel elements in this argument.
append_tab(tab, select = FALSE, closeable = FALSE)
tab The tabPanel element to be added.
select Should tab be selected upon being inserted?
closeable If TRUE, the added tab is closeable via an action button.
hide()

Hide this content element.

get_id()

Get the content element's id.

show()

Show the content element.

show_by_action_button(id, session = shiny::getDefaultReactiveDomain())

Show the content element, if the actionButton with inputId == id is clicked. session is the session, in which the actionButton was defined.

remove_tab(target)

Dynamically remove a tabPanel.

target The value of the tabPanel that you want to remove.
ui(hidden = TRUE)

Get the ui (similar to tabBox) associated with this content element. You should only call this function once. If hidden, the ui starts in a hidden mode (see hidden). Use this$show() for showing the ui.

update_tab(selected)

Change the selected tab on the client.

selected The name of the tab to make active.

DavidBarke/QWUtils documentation built on Jan. 13, 2020, 11:52 a.m.