layerpro
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

I am LayerPro

LayerPro by Dario Passariello

TypeScript React-js dpHelper

About

LayerPro give you a complete new way to customize web popups on your application. LP permit you also to have custom alert, promps, confirm and message and override the ugly browser popup.

Please, read the LICENSE agreement before to implementing in your application.

Live demo

https://a51.dev/tests/

You can see an HTML version where dpHelper and LayerPro works. You can use with html, react, vue or any other frontend / library.


Install for react + webpack projects

npm i layerpro --save-dev

or update:

npm i layerpro@latest --save-dev

in the index (and only there):

import "layerpro";

or

require("layerpro");

Install for ejs or other type of projects (like html)

note: you don't need to use npm install in this case or you get an error

<script src="https://unpkg.com/layerpro@latest/index.js"></script>

How to use it

type 'layerpro' in your console to have a look about all available tools that you can use globaly! You can call these from everywhere without import (just one at index). If you type alert("hello, world!") you can see the result.

Another use:

layerpro.popup.open({
  id: "test",
  name: "Say hello dear!",
  body: "Hello, World!",
  icon: "&#9998;",
  width: 350,
  height: 200,
  maximize: false,
  close: true,
  top: "50%",
  left: "50%",
  raised: false,
  movable: true,
  resizable: false,
});

copyright (c) 2019 - 2023 by Dario Passariello

Package Sidebar

Install

npm i layerpro

Weekly Downloads

47

Version

0.3.2

License

MIT

Unpacked Size

196 kB

Total Files

18

Last publish

Collaborators

  • passariello