positioning

  • Version 2.0.1
  • Published
  • 38.1 kB
  • No dependencies
  • MIT license

Install

npm i positioning
yarn add positioning
pnpm add positioning

Overview

The ng-bootstrap Positioning class as a standalone module

Index

Functions

function positionElements

positionElements: (
hostElement: HTMLElement,
targetElement: HTMLElement,
placement: string | Placement | PlacementArray,
appendToBody?: boolean,
baseClass?: string
) => Placement;

    Type Aliases

    type Placement

    type Placement =
    | 'auto'
    | 'top'
    | 'bottom'
    | 'left'
    | 'right'
    | 'top-left'
    | 'top-right'
    | 'bottom-left'
    | 'bottom-right'
    | 'left-top'
    | 'left-bottom'
    | 'right-top'
    | 'right-bottom';

      type PlacementArray

      type PlacementArray = Placement | Array<Placement> | string;

        Package Files (2)

        Dependencies (0)

        No dependencies.

        Dev Dependencies (21)

        Peer Dependencies (0)

        No peer dependencies.

        Badge

        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/positioning.

        • Markdown
          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/positioning)
        • HTML
          <a href="https://www.jsdocs.io/package/positioning"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>