We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
position
1 parent 928ecdc commit 24287b8Copy full SHA for 24287b8
src/flyout.js
@@ -52,6 +52,19 @@ export class FlyoutElement extends LitElement {
52
return;
53
}
54
this.config = config;
55
+
56
+ // The "position" is a value that can be defined from the dashboard.
57
+ // There are two main options: "Default" or a specific value.
58
+ // When "Default" is used, the value will be grabbed from the HTML element (e.g. explicitly set by the theme author).
59
+ // In case it's not defined, the value defined in the `constructor` will be used ("bottom-right")
60
+ const dashboardPosition = objectPath.get(
61
+ this.config,
62
+ "addons.flyout.position",
63
+ null,
64
+ );
65
+ if (dashboardPosition) {
66
+ this.position = dashboardPosition;
67
+ }
68
69
70
_close() {
0 commit comments