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: assemblies/assembly-configuring-a-floating-action-button.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,6 @@
3
3
[id="{context}"]
4
4
= Configuring a floating action button in {product}
5
5
6
-
You can use the floating action button plugin to configure any action button as a floating button in any page in the {product-short} instance as you want. The floating action button plugin is disabled by default. You can also configure floating action buttons to display as submenu options within the main floating action button by assigning the floating action buttons to the same slot.
6
+
You can use the floating action button plugin to configure any action as a floating button in the {product-short} instance. The floating action button plugin is enabled by default. You can also configure floating action buttons to display as submenu options within the main floating action button by assigning the floating action buttons to the same `slot` field of your `dynamic-plugins.yaml` file.
Copy file name to clipboardexpand all lines: modules/configuring-a-floating-action-button/proc-configuring-floating-action-button-as-a-dynamic-plugin.adoc
+186-40
Original file line number
Diff line number
Diff line change
@@ -16,51 +16,197 @@ To configure a floating action button as a dynamic plugin, complete any of the f
16
16
.Example of a bulk-import plugin as a floating action button
<1> (Required) The import name with an associated component to the mount point.
47
+
<2> Use the `svg` value to display a black BulkImportPage icon.
44
48
45
-
* To configure a dynamic plugin as a floating action button that opens an external link, specify the `global.floatingactionbutton/config` mount point in your `app-config-dynamic.yaml` file. For example:
49
+
* To configure an action as a floating action button that opens an external link, specify the `global.floatingactionbutton/config` mount point in your `dynamic-plugins.yaml` file within the `backstage-plugin-global-floating-action-button` plugin. For example:
46
50
+
47
51
.Example of a floating action button that opens GitHub
to: https://github.com/redhat-developer/rhdh-plugins
63
78
----
79
+
<1> (Required) The import name with an associated component to the mount point.
80
+
<2> Use the `svg` value to display the `Quay` icon.
81
+
82
+
* To configure a floating action button that contains a submenu, define the `global.floatingactionbutton/config` mount point in the same `slot` field in your `dynamic-plugins.yaml` file for multiple actions. The default slot is `page-end` when not specified. For example:
83
+
+
84
+
.Example of a floating action button with submenu actions
<1> (Required) The import name with an associated component to the mount point.
140
+
141
+
* To configure a floating action button to display only on specific pages, configure the `global.floatingactionbutton/config` mount point in the `backstage-plugin-global-floating-action-button` plugin and set the `visibleOnPaths` property as shown in the following example:
142
+
+
143
+
.Example of a floating action button to display specific pages
<1> (Required) The import name with an associated component to the mount point.
175
+
176
+
* To hide a floating action button on specific pages, configure the `global.floatingactionbutton/config` mount point in the `backstage-plugin-global-floating-action-button` plugin and set the `excludeOnPaths` property as shown in the following example:
177
+
+
178
+
.Example of a floating action button to hide specific pages
<1> (Required) The import name with an associated component to the mount point.
64
210
65
211
== Floating action button parameters
66
212
Use the parameters as shown in the following table to configure your floating action button plugin.
@@ -83,12 +229,12 @@ Use the parameters as shown in the following table to configure your floating ac
83
229
84
230
| `icon`
85
231
| Icon of the floating action button. Recommended to use filled icons from the link:https://fonts.google.com/icons[Material Design library]. You can also use an svg icon. For example: `<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#e8eaed"><g><rect fill="none" height="24" width="24"/></g><g><path d="M11,7L9.6,8.4l2.6,2.6H2v2h10.2l-2.6,2.6L11,17l5-5L11,7z M20,19h-8v2h8c1.1,0,2-0.9,2-2V5c0-1.1-0.9-2-2-2h-8v2h8V19z"/></g></svg>`
@@ -145,5 +291,5 @@ Use the parameters as shown in the following table to configure your floating ac
145
291
146
292
[NOTE]
147
293
====
148
-
If multiple floating button actions are assigned to the same `Slot`, these floating buttons are displayed as submenu options within the main floating action button.
294
+
If multiple floating button actions are assigned to the same `slot` value, the floating buttons are displayed as submenu options within the main floating action button.
0 commit comments