vira - v28.19.0
    Preparing search index...

    Type Alias PopUpManagerOptions

    Options for PopUpManager.

    type PopUpManagerOptions = {
        horizontalDiffThreshold: number;
        minDownSpace: number;
        minRightSpace: number;
        supportNavigation: boolean;
        verticalDiffThreshold: number;
    }
    Index

    Properties

    horizontalDiffThreshold: number

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

    Equation:

    const directLeftwards =
        rightwardsSpace < minRightSpace &&
        leftwardsSpace > rightwardsSpace + horizontalDiffThreshold;
    
    100
    
    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
    
    minRightSpace: number

    The minimum number of pixels for allowing the pop-up to go rightwards. If the rightward available space is less than this, and if the leftwards available space is horizontalDiffThreshold more than the rightwards space, the pop-up will be directed leftwards.

    Equation:

    const directLeftwards =
        rightwardsSpace < minRightSpace &&
        leftwardsSpace > rightwardsSpace + horizontalDiffThreshold;
    
    400
    
    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