Learn R Programming

dash (version 0.9.4)

dbcTab: Tab component

Description

Create a single tab. Should be used as a component of Tabs.

Usage

dbcTab(children=NULL, id=NULL, style=NULL, tab_style=NULL,
active_tab_style=NULL, label_style=NULL,
active_label_style=NULL, class_name=NULL, className=NULL,
tab_class_name=NULL, tabClassName=NULL,
active_tab_class_name=NULL, activeTabClassName=NULL,
label_class_name=NULL, labelClassName=NULL,
active_label_class_name=NULL, activeLabelClassName=NULL,
key=NULL, label=NULL, tab_id=NULL, disabled=NULL,
loading_state=NULL)

Arguments

children

A list of or a singular dash component, string or number. The children of this component

id

Character. The ID of this component, used to identify dash components in callbacks. The ID needs to be unique across all of the components in an app.

style

Named list. Defines CSS styles which will override styles previously set. The styles set here apply to the content of the Tab

tab_style

Named list. Defines CSS styles which will override styles previously set. The styles set here apply to the NavItem in the tab.

active_tab_style

Named list. Defines CSS styles which will override styles previously set. The styles set here apply to the NavItem in the tab when it is active.

label_style

Named list. Defines CSS styles which will override styles previously set. The styles set here apply to the NavLink in the tab.

active_label_style

Named list. Defines CSS styles which will override styles previously set. The styles set here apply to the NavLink in the tab when it is active

class_name

Character. Often used with CSS to style elements with common properties.

className

Character. **DEPRECATED** Use `class_name` instead.

Often used with CSS to style elements with common properties.

tab_class_name

Character. Often used with CSS to style elements with common properties. The classes specified with this prop will be applied to the NavItem in the tab.

tabClassName

Character. **DEPRECATED** Use `tab_class_name` instead

Often used with CSS to style elements with common properties. The classes specified with this prop will be applied to the NavItem in the tab.

active_tab_class_name

Character. Often used with CSS to style elements with common properties. The classes specified with this prop will be applied to the NavItem in the tab when it is active.

activeTabClassName

Character. **DEPRECATED** Use `active_tab_class_name` instead

Often used with CSS to style elements with common properties. The classes specified with this prop will be applied to the NavItem in the tab when it is active.

label_class_name

Character. Often used with CSS to style elements with common properties. The classes specified with this prop will be applied to the NavLink in the tab.

labelClassName

Character. **DEPRECATED** Use `label_class_name` instead

Often used with CSS to style elements with common properties. The classes specified with this prop will be applied to the NavLink in the tab.

active_label_class_name

Character. Often used with CSS to style elements with common properties. The classes specified with this prop will be applied to the NavLink in the tab when it is active.

activeLabelClassName

Character. **DEPRECATED** Use `active_label_class_name` instead

Often used with CSS to style elements with common properties. The classes specified with this prop will be applied to the NavLink in the tab when it is active.

key

Character. A unique identifier for the component, used to improve performance by React.js while rendering components See https://reactjs.org/docs/lists-and-keys.html for more info

label

Character. The tab's label, displayed in the tab itself.

tab_id

Character. Optional identifier for tab used for determining which tab is visible if not specified, and Tab is being used inside Tabs component, the tabId will be set to "tab-i" where i is (zero indexed) position of tab in list tabs pased to Tabs component.

disabled

Logical. Determines if tab is disabled or not - defaults to false

loading_state

Lists containing elements 'is_loading', 'prop_name', 'component_name'. those elements have the following types: - is_loading (logical; optional): determines if the component is loading or not - prop_name (character; optional): holds which property is loading - component_name (character; optional): holds the name of the component that is loading. Object that holds the loading state object coming from dash-renderer

Value

named list of JSON elements corresponding to React.js properties and their values