Skip to content

vwc-popup 2.45.0

Install from the command line:
Learn more about npm packages
$ npm install @vonage/vwc-popup@2.45.0
Install via package.json:
"@vonage/vwc-popup": "2.45.0"

About this version

vwc-popup

Popup are used to display a message or notification to the user and are displayed on top of all other web page elements. Popup's goal is to provide additional, helpful content.
To trigger the Popup, it should be paired with an anchor (e.g., a button).

Properties

Property Attribute Type Default
anchor anchor Element | undefined
arrow arrow boolean | undefined true
corner corner ` "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" "left-end"`
dismissible dismissible boolean | undefined true
open open boolean false
strategy strategy "fixed" | "absolute" "fixed"

Methods

Method Type Description
hide (): void Closes the popup
show (): Promise<void> Opens the popup
updatePosition (): Promise<boolean> Updates popup position, if succeeded returns - true, if not - false

Details


Assets

  • vwc-popup-2.45.0.tgz

Download activity

  • Total downloads 14
  • Last 30 days 0
  • Last week 0
  • Today 0