MediaSFU Angular
    Preparing search index...

    Function getModalPosition

    • Gets the style for positioning a modal based on the specified position.

      Parameters

      Returns ModalPositionStyle

      • Style object for aligning the modal according to the specified position.
      const positionStyle = getModalPosition({ position: 'center' });
      // Output: { justifyContent: 'center', alignItems: 'center' }

      const topLeftStyle = getModalPosition({ position: 'topLeft' });
      // Output: { justifyContent: 'flex-start', alignItems: 'flex-start' }