Skip to main content
Version: 5.35.0

Display modes

The Popup component supports five display modes that specify where on the screen is it going to render itself:

  1. 'center' - will render the popup on the center of the screen
  2. 'top' - will render the popup on the top of the screen sliding down
  3. 'bottom' - will render the popup on the bottom of the screen sliding up
  4. 'anchored' - will render the popup above or below the element it is anchored to. The anchor option will specify the element to which the popup is positioned. By default it is the input element rendered by the popup.
  5. 'inline' - will render the popup into the page embedded.
Setting a display option
$('#myDiv').mobiscroll().popup({
display: 'anchored',
});