vira - v28.19.0
    Preparing search index...

    Type Alias PopUpTriggerPosition

    Configs for ViraPopUpTrigger pop-up positioning and sizing.

    type PopUpTriggerPosition = {
        horizontalAnchor: HorizontalAnchor;
        ignoreMaxHeight: boolean;
        ignoreMaxWidth: boolean;
    }
    Index

    Properties

    horizontalAnchor: HorizontalAnchor
    • HorizontalAnchor.Left: pop-up is anchored to the left side of the trigger and the pop-up can grow to the right.
    • HorizontalAnchor.Right: pop-up is anchored to the right side of the trigger and the pop-up can grow to the left.
    • HorizontalAnchor.Both: pop-up is anchored on both sides of the trigger and cannot grow beyond it.
    • HorizontalAnchor.Auto: automatically choose left or right anchor based on available space, defaulting to left anchor. (This is the default experience.)

    Note that when HorizontalAnchor.Both is not used, this anchor will cancel out any popUpOffset for the direction opposite of the chosen anchor.

    ignoreMaxHeight: boolean

    When true, the pop-up will not have its maximum height constrained to fit within the overflow container. The positioning logic (up/down) will still be applied.

    false
    
    ignoreMaxWidth: boolean

    When true, the pop-up will not have its maximum width constrained to fit within the overflow container. The positioning logic (left/right) will still be applied.

    false