Methods
-
<static> showUserPopout( target, user [, options ] )
-
Description
Shows the user popout for a user relative to a target element
Parameters
Name Type Attributes Description targetHTMLElement Element to show the popout in relation to
userobject Discord User object for the user to show
optionsobject <optional> Options to modify the request
Name Type Attributes Default Description guildstring <optional> "currentGuildId" Id of the guild (uses current if not specified)
channelstring <optional> "currentChannelId" Id of the channel (uses current if not specified)
positionstring <optional> "right" Positioning relative to element
alignstring <optional> "top" Positioning relative to element
Details
-
<static> openPopout( target [, options ] )
-
Description
Shows a react popout relative to a target element
Parameters
Name Type Attributes Description targetHTMLElement Element to show the popout in relation to
optionsobject <optional> Options to modify the request
Name Type Attributes Default Description positionstring <optional> "right" General position relative to element
alignstring <optional> "top" Alignment relative to element
animationPopouts.AnimationTypes <optional> Popouts.AnimationTypes.TRANSLATE Animation type to use
autoInvertboolean <optional> true Try to automatically adjust the position if it overflows the screen
nudgeAlignIntoViewportboolean <optional> true Try to automatically adjust the alignment if it overflows the screen
spacingnumber <optional> 8 Spacing between target and popout
Details