0.3.3 • Published 2 years ago

@rowi/rowi-overlay v0.3.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

rowi-overlay

A overlay web component. This element should not be added or removed from the DOM manually, but using its methods open() and close(). This element contents will be shown on top of anything in the document, when opened. You can tell if the element is opened by checking the property _opened.

Properties

  • opacity

    • type: number
    • default: 0.
    • Description: The opacity of the overlay background.
    • Attribute: data-opacity.
    • Event: $opacity.
  • color

    • type: string
    • default: 0,0,0.
    • Description: The color of the overlay background. It's a comma-separated string with numbers between 0 and 255 for red, green and blue colors.
    • Attribute: data-color.
    • Event: $color.
  • transitionTime

    • type: number
    • default: 300.
    • Description: The time in ms it takes to open and close the overlay.
    • Attribute: data-transition-time.
    • Event: $transitionTime.
  • persistent

    • type: boolean
    • default: false.
    • Description: Whether the overlay can be closed (if false) or not.
    • Attribute: data-persistent.
    • Event: $persistent.
  • intangible

    • type: boolean
    • default: false.
    • Description: Whether the overlay can be clicked through (if true) or not.
    • Attribute: data-intangible.
    • Event: $intangible.
0.3.2

2 years ago

0.3.1

3 years ago

0.3.3

2 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago