Socket
Socket
Sign inDemoInstall

layerpro

Package Overview
Dependencies
0
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    layerpro

Manage your popups and customize them


Version published
Weekly downloads
21
decreased by-41.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 24 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc