aboutsummaryrefslogtreecommitdiff
path: root/src/components/popover/popover.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2021-03-01 12:12:12 +0000
committerShpuld Shpludson <shp@cock.li>2021-03-01 12:12:12 +0000
commit6d7b5b157b64df5b189dd4e64e382bdda17e8897 (patch)
tree4a853bd60ad8aad57887fefd9d69952c82889131 /src/components/popover/popover.js
parenta90910be8fb1f3ebde4177fcf08ec5024da44755 (diff)
parentfc5483f7641f3aa6866fbbd9beaca0139083ee86 (diff)
Merge branch 'feat/timeline-quick-settings' into 'develop'
close #1050 - add a quick settings menu to timeline header Closes #1050 See merge request pleroma/pleroma-fe!1355
Diffstat (limited to 'src/components/popover/popover.js')
-rw-r--r--src/components/popover/popover.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/popover/popover.js b/src/components/popover/popover.js
index bfe39212..391d6422 100644
--- a/src/components/popover/popover.js
+++ b/src/components/popover/popover.js
@@ -3,25 +3,32 @@ const Popover = {
props: {
// Action to trigger popover: either 'hover' or 'click'
trigger: String,
+
// Either 'top' or 'bottom'
placement: String,
+
// Takes object with properties 'x' and 'y', values of these can be
// 'container' for using offsetParent as boundaries for either axis
// or 'viewport'
boundTo: Object,
+
// Takes a selector to use as a replacement for the parent container
// for getting boundaries for x an y axis
boundToSelector: String,
+
// Takes a top/bottom/left/right object, how much space to leave
// between boundary and popover element
margin: Object,
+
// Takes a x/y object and tells how many pixels to offset from
// anchor point on either axis
offset: Object,
+
// Replaces the classes you may want for the popover container.
// Use 'popover-default' in addition to get the default popover
// styles with your custom class.
popoverClass: String,
+
// If true, subtract padding when calculating position for the popover,
// use it when popover offset looks to be different on top vs bottom.
removePadding: Boolean