Socket
Book a DemoInstallSign in
Socket

@paraboly/pwc-sliding-panel

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paraboly/pwc-sliding-panel

A panel that slides open from the sides of the page when you click a handle.

4.1.1
latest
Source
npmnpm
Version published
Weekly downloads
17
70%
Maintainers
3
Weekly downloads
 
Created
Source

Built With Stencil

WebComponent PWC README Boilerplate

Fully customizable readme boilerplate for web component with StencilJS via Paraboly

npm version npm Platform - Platform Free Web License: MIT

WebComponent PWC README Boilerplate

Live Codepen Example

Installation

Script tag

  • Put two script tags similar to this in the head of your index.html:
<script
  type="module"
  src="https://unpkg.com/@paraboly/pwc-sliding-panel@latest/dist/pwc-sliding-panel/pwc-sliding-panel.esm.js"
></script>
<script
  nomodule
  src="https://unpkg.com/@paraboly/pwc-sliding-panel@latest/dist/pwc-sliding-panel/pwc-sliding-panel.js"
></script>
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install @paraboly/pwc-sliding-panel --save
  • Put a script tag similar to this <script src='node_modules/@paraboly/pwc-sliding-panel/dist/pwc-sliding-panel.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • Run npm install @paraboly/pwc-sliding-panel --save
  • Add an import to the npm packages import @paraboly/pwc-sliding-panel;
  • Then you can use the element anywhere in your template, JSX, html etc

Usage

Basic Usage

This is just an example from pwc-animated-checkbox, you need to change it!

<pwc-animated-checkbox></pwc-animated-checkbox>

Checkbox onCheckChange Listener Usage

JS Way

This is just an example from pwc-animated-checkbox, you need to change it!

// Multiple Checkboxes
const pwcCheckboxes = document.querySelectorAll("pwc-animated-checkbox");
pwcCheckboxes.forEach(element => {
  element.addEventListener("checkedEvent", event => {
    console.log("Event: ", event.detail);
  });
})
// Selects the first checkbox
const pwcCheckbox = document.querySelector("pwc-animated-checkbox");
pwcCheckbox.addEventListener("checkedEvent", event => {
console.log("First Element Event: ", event.detail);

Future Plans

  • Documentation
  • LICENSE
  • Color Customization
  • Animation Bug Fix

Authors

Author, author@work_email.com | author@personal_email.com

License

WebComponent PWC README Boilerplate is available under the MIT license.

See the LICENSE file for more info.

Keywords

paraboly

FAQs

Package last updated on 11 Feb 2020

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.