# metal-jquery-adapter

> A module that can create jQuery plugins for Metal.js components.

Latest version **2.0.0** (published 2016-07-25) · BSD license · 0 weekly downloads

## Install

```sh
npm install metal-jquery-adapter
pnpm add metal-jquery-adapter
yarn add metal-jquery-adapter
bun add metal-jquery-adapter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2016-07-25 |
| First published | 2016-03-29 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.12.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | mairatma |
| Keywords | jquery, metal, plugin |

## Links

- npm: https://www.npmjs.com/package/metal-jquery-adapter
- Repository: https://github.com/metal/metal-jquery-adapter
- Homepage: https://github.com/metal/metal-jquery-adapter#readme
- Issues: https://github.com/metal/metal-jquery-adapter/issues
- npm.io page: https://npm.io/package/metal-jquery-adapter

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2016-07-25
- 1.0.0 — 2016-07-05
- 1.0.0-rc.2 — 2016-04-07
- 1.0.0-rc.1 — 2016-04-01
- 1.0.0-rc — 2016-03-29

## README

metal-jquery-adapter
===================================

A module that can create jQuery plugins for Metal.js components.

##Usage

Just call JqueryAdapter.register with the jquery method name you want to use for the plugin and the component's constructor. For example:

```javascript
JqueryAdapter.register('modal', Modal);

// Now you can call the plugin like this:
$('#Modal').modal({headerContent: 'My Header'});

// You can also call functions after initalizing the plugin for the first time:
$('#Modal').modal('show');

// And listen to events from the Metal.js component directly on the jQuery element:
$('#Modal').on('metal-modal:buttonClicked', function(event, data) {
  console.log('Button was clicked: ', data.button);
});
```

---
_Source: https://npm.io/package/metal-jquery-adapter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
