pl

popup-layer

popup tip

Showing:

Popularity

Downloads/wk

1

Maintenance

No Maintenance Data Available

Package

Dependencies

0

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

popup-layer

About

Popup-layer is a pop-up plugin,it exposes a base class outwards, which means that you can completely customize attributes and methods by instantiating them.Popup-layer is written through native JS, independent of the third party library.

Install

npm install popup-layer

Import

import popup from 'popup-layer';

Instantiation

Popup-layer provides a static method to customize configuration.

// here is a simple example
popup.open({
    title: 'Title',
    content: 'Hello Popup-Layer!',
});

Properties

  • title {string}: message header
  • content {string}: message content
  • time {number}: popup-layer auto shut down time(millisecond)
  • popupHeader {object}: custom message header styles
  • popupContent {object}: custom message content styles
  • popupFooter {object}: custom message footer styles

In addition, you can directly copy popup-layer styles, such as fontSize:'16px'

Methods

  • btnCancel: callback method for cancel button
  • btnClose: callback method for close button
  • btnOk: callback method for ok button

GitHub address

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial