File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ const Button = props => {
23
23
target,
24
24
type,
25
25
download,
26
+ name,
27
+ value,
26
28
...otherProps
27
29
} = props ;
28
30
@@ -45,6 +47,8 @@ const Button = props => {
45
47
href = { disabled ? null : href }
46
48
disabled = { disabled }
47
49
download = { useLink ? download : null }
50
+ name = { useLink ? null : name }
51
+ value = { useLink ? null : value }
48
52
{ ...omit ( [ 'n_clicks_timestamp' ] , otherProps ) }
49
53
data-dash-is-loading = {
50
54
( loading_state && loading_state . is_loading ) || undefined
@@ -193,7 +197,20 @@ Button.propTypes = {
193
197
/**
194
198
* Indicates that the hyperlink is to be used for downloading a resource.
195
199
*/
196
- download : PropTypes . string
200
+ download : PropTypes . string ,
201
+
202
+ /**
203
+ * The name of the button, submitted as a pair with the button’s value as part
204
+ * of the form data.
205
+ */
206
+ name : PropTypes . string ,
207
+
208
+ /**
209
+ * Defines the value associated with the button’s name when it’s submitted
210
+ * with the form data. This value is passed to the server in params when the
211
+ * form is submitted.
212
+ */
213
+ value : PropTypes . string
197
214
} ;
198
215
199
216
export default Button ;
You can’t perform that action at this time.
0 commit comments