JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q30257F
  • License MIT

a backdrop layer to be used in lightbox components

Package Exports

  • mn-backdrop

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mn-backdrop) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm version Dependency Status MIT Licence

mn-backdrop

a layer backdrop to be used in mn-components

See the demo

Install

npm install --save mn-backdrop

And bundle dependencies and main files in dist/ with your preferred tool.

Usage

Use the methods from class MnBackdrop

MnBackdrop.show()

and hide

MnBackdrop.hide()

Target

Sometimes, different dependencies use this backdrop, to avoid conflicts between their, define a target as owner of backdrop, on methods, using the option target, eg.

MnBackdrop.show({target: element})
MnBackdrop.hide() // dont work, because backdrop has a target as owner
MnBackdrop.hide({target: element})