We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
position
1 parent f885e96 commit 39d26d3Copy full SHA for 39d26d3
src/flyout.js
@@ -45,6 +45,14 @@ export class FlyoutElement extends LitElement {
45
return;
46
}
47
this.config = config;
48
+
49
+ // The "position" is a value that can be defined from the dashboard.
50
+ // There are two main options: "Default" or a specific value.
51
+ // When "Default" is used, the value will be grabbed from the HTML element (e.g. explicitly set by the theme author).
52
+ // In case it's not defined, the value defined in the `constructor` will be used ("bottom-right")
53
+ this.position =
54
+ objectPath.get(this.config, "addons.flyout.position", null) ||
55
+ this.position;
56
57
58
_close() {
0 commit comments