-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathdbcButton.Rd
97 lines (67 loc) · 4.28 KB
/
dbcButton.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
% Auto-generated: do not edit by hand
\name{dbcButton}
\alias{dbcButton}
\title{Button component}
\description{
A component for creating Bootstrap buttons with different style options. The Button component can act as a HTML button, link (<a>) or can be used like a dash_core_components style `Link` for navigating between pages of a Dash app. Use the `n_clicks` prop to trigger callbacks when the button has been clicked.
}
\usage{
dbcButton(children=NULL, id=NULL, class_name=NULL, className=NULL,
style=NULL, key=NULL, href=NULL, external_link=NULL,
n_clicks=NULL, n_clicks_timestamp=NULL, active=NULL,
color=NULL, disabled=NULL, size=NULL, title=NULL,
outline=NULL, loading_state=NULL, target=NULL, type=NULL,
download=NULL, name=NULL, value=NULL)
}
\arguments{
\item{children}{A list of or a singular dash component, string or number. The children of this component.}
\item{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.}
\item{class_name}{Character. Often used with CSS to style elements with common properties.}
\item{className}{Character. **DEPRECATED** Use `class_name` instead.
Often used with CSS to style elements with common properties.}
\item{style}{Named list. Defines CSS styles which will override styles previously set.}
\item{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}
\item{href}{Character. Pass a URL (relative or absolute) to make the menu entry a link.}
\item{external_link}{Logical. If true, the browser will treat this as an external link,
forcing a page refresh at the new location. If false,
this just changes the location without triggering a page
refresh. Use this if you are observing dcc.Location, for
instance. Defaults to true for absolute URLs and false
otherwise.}
\item{n_clicks}{Numeric. An integer that represents the number of times
that this element has been clicked on.}
\item{n_clicks_timestamp}{Numeric. Use of *_timestamp props has been deprecated in Dash in favour of dash.callback_context.
See "How do I determine which Input has changed?" in the Dash FAQs https://dash.plot.ly/faqs.
An integer that represents the time (in ms since 1970)
at which n_clicks changed. This can be used to tell
which button was changed most recently.}
\item{active}{Logical. Whether button is in active state. Default: False.}
\item{color}{Character. Button color, options: primary, secondary, success, info, warning, danger,
link. Default: secondary.}
\item{disabled}{Logical. Disable button (make unclickable). Default: False.}
\item{size}{Character. Button size, options: 'lg', 'md', 'sm'.}
\item{title}{Character. Sets the title attribute of the underlying HTML button.}
\item{outline}{Logical. Set outline button style, which removes background images and colors for a
lightweight style.}
\item{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}
\item{target}{Character. Target attribute to pass on to link if using Button as an external link.}
\item{type}{A value equal to: 'button', 'reset', 'submit'. The default behavior of the button. Possible values are: "button", "reset",
"submit". If left unspecified the default depends on usage: for buttons
associated with a form (e.g. a dbc.Button inside a dbc.Form) the default is
"submit". Otherwise the default is "button".}
\item{download}{Character. Indicates that the hyperlink is to be used for downloading a resource.}
\item{name}{Character. The name of the button, submitted as a pair with the button’s value as part
of the form data.}
\item{value}{Character. Defines the value associated with the button’s name when it’s submitted
with the form data. This value is passed to the server in params when the
form is submitted.}
}
\value{named list of JSON elements corresponding to React.js properties and their values}