DevExtreme jQuery/JS - Resize and Relocate
To change the size of the Popover, specify the height and width options.
JavaScript
HTML
- $(function() {
- $("#popoverContainer").dxPopover({
- target: "#image",
- showEvent: 'dxhoverstart',
- hideEvent: 'dxhoverend',
- height: 300,
- width: 500
- });
- });
- <img id="image" src="https://www.devexpress.com/DXR.axd?r=9999_17-FD0Id" />
- <div id="popoverContainer">
- <p>Popover content</p>
- </div>
If you need to position the Popover against a certain side of the target element, set the position option.
JavaScript
- $(function() {
- $("#popoverContainer").dxPopover({
- target: "#image",
- showEvent: 'dxhoverstart',
- hideEvent: 'dxhoverend',
- position: "top" // or "bottom" | "left" | "right"
- });
- });
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.