Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pluginjs/component

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pluginjs/component

A workflow for modern frontend development.

  • 0.2.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
42
decreased by-27.59%
Maintainers
2
Weekly downloads
 
Created
Source

Component

A flexible modern component js plugin.

Introduction

Demo

Installation

NPM
npm i @pluginjs/component
Yarn
yarn add @pluginjs/component

Dependencies

  • jQuery
  • @pluginjs/pluginjs

Getting Started

Include

Webpack && Rollup:

ECMAScript Modules

import component from "@pluginjs/component"

CommonJS

require("@pluginjs/component")

CDN: Development:

<script src="/path/to/component.js"></script>
<link rel="stylesheet" href="/path/to/component.css">

Production:

<script src="/path/to/component.min.js"></script>
<link rel="stylesheet" href="/path/to/component.min.css">

Initialize

HTML:

<body>
  <div class="element"></div>
</body>

JS:

Pj.Component('.element', options);
// or jquery way
$('.element').plugin('Component', options);

API

Methods:

Methods are called on component instances through the component method itself. You can also save the instances to variable for further use.

NameDescription
"getDataOptions"Make plugin themeable

example:

$component.plugin('Component', getDataOptions)
$component.plugin('Component', getDataOptions, "foo")
$component.plugin('Component', getDataOptions, "foo", "bar")

Browser support

Tested on all major browsers.

SafariChromeFirefoxEdgeIEOpera
Latest ✓Latest ✓Latest ✓Latest ✓>=10 ✓Latest ✓

As a jQuery plugin, you also need to see the jQuery Browser Support.

Contributing

See Contribution.md.

Changelog

To see the list of recent changes, see Releases section.

Version

Version: 0.2.3

Copyright (C) 2017 Creation Studio Limited.

Licensed under the GPL-v3 license.

FAQs

Package last updated on 28 Mar 2018

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc