You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: shiny/bookmark/_button.py
+23-23Lines changed: 23 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,30 @@ def input_bookmark_button(
28
28
29
29
A `bookmarkButton` is a [input_action_button()] with a default label that consists of a link icon and the text "Bookmark...". It is meant to be used for bookmarking state.
30
30
31
+
Parameters
32
+
----------
33
+
label
34
+
The button label.
35
+
icon
36
+
The icon to display on the button.
37
+
width
38
+
The CSS width, e.g. '400px', or '100%'.
39
+
disabled
40
+
Whether the button is disabled.
41
+
id
42
+
An ID for the bookmark button. This should only be provided when multiple buttons are needed (or used inside a module). See the note on multiple buttons.
43
+
title
44
+
A tooltip that is shown when the mouse cursor hovers over the button.
45
+
kwargs
46
+
Additional attributes for the button.
47
+
48
+
Returns
49
+
-------
50
+
:
51
+
A UI element.
52
+
31
53
Multiple (module) buttons
32
-
----------------
54
+
-------------------------
33
55
34
56
By default, Shiny will listen for the default `id` being used and call
35
57
`session.bookmark()` on button click. However, this will not work if the bookmark
@@ -52,28 +74,6 @@ async def _():
52
74
await session.bookmark()
53
75
```
54
76
55
-
Parameters
56
-
----------
57
-
label
58
-
The button label.
59
-
icon
60
-
The icon to display on the button.
61
-
width
62
-
The CSS width, e.g. '400px', or '100%'.
63
-
disabled
64
-
Whether the button is disabled.
65
-
id
66
-
An ID for the bookmark button. This should only be provided when multiple buttons are needed (or used inside a module). See the note on multiple buttons.
67
-
title
68
-
A tooltip that is shown when the mouse cursor hovers over the button.
0 commit comments