Type Alias PopUpManagerOptions

PopUpManagerOptions: {
    minDownSpace: number;
    supportNavigation: boolean;
    verticalDiffThreshold: number;
}

Options for PopUpManager.

Type declaration

  • minDownSpace: number

    The minimum number of pixels for allowing the pop-up to go downwards. If the downward available space is less than this, and if the upwards available space is verticalDiffThreshold more than the downwards space, the pop-up will be directed upwards.

    Equation:

    const directUpwards =
        downwardsSpace < minDownSpace &&
        upwardsSpace > DownwardsSpace + verticalDiffThreshold;
    
    200
    
  • supportNavigation: boolean

    Supports navigation of the pop up via the device-navigation package.

    true
    
  • verticalDiffThreshold: number

    The number of pixels required for the upwards available space to be bigger than the downwards available space before directing the pop-up upwards.

    Equation:

    const directUpwards =
        downwardsSpace < minDownSpace &&
        upwardsSpace > DownwardsSpace + verticalDiffThreshold;
    
    20