dccClipboard: Clipboard component

View source: R/dashCoreComponents.R

dccClipboardR Documentation

Clipboard component

Description

The Clipboard component copies text to the clipboard

Usage

dccClipboard(id=NULL, target_id=NULL, content=NULL, n_clicks=NULL,
title=NULL, style=NULL, className=NULL, loading_state=NULL)

Arguments

id

Character. The ID used to identify this component.

target_id

Character | named list. The id of target component containing text to copy to the clipboard. The inner text of the 'children' prop will be copied to the clipboard. If none, then the text from the 'value' prop will be copied.

content

Character. The text to be copied to the clipboard if the 'target_id' is None.

n_clicks

Numeric. The number of times copy button was clicked

title

Character. The text shown as a tooltip when hovering over the copy icon.

style

Named list. The icon's styles

className

Character. The class name of the icon element

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


plotly/dashR documentation built on June 12, 2022, 9:08 a.m.