# jquery-dialog

> jQuery plugin that creates the basic interactivity for an ARIA dialog widget.

Latest version **0.5.2** (published 2017-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install jquery-dialog
pnpm add jquery-dialog
yarn add jquery-dialog
bun add jquery-dialog
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.2 |
| Published | 2017-10-19 |
| First published | 2016-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ian McBurnie |
| Maintainers | ianmcburnie |
| Keywords | jquery-plugin, ecosystem:jquery, accessibility, a11y, wai-aria, dialog |

## Links

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

## 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

- 0.5.2 (latest) — 2017-10-19
- 0.5.1 — 2017-02-23
- 0.5.0 — 2017-02-22
- 0.4.0 — 2017-02-21
- 0.3.0 — 2017-02-14
- 0.2.2 — 2016-09-16
- 0.2.1 — 2016-08-27
- 0.2.0 — 2016-07-08
- 0.1.2 — 2016-06-17
- 0.1.1 — 2016-06-17
- 0.1.0 — 2016-06-17
- 0.0.1 — 2016-05-03

## README

# jquery-dialog

jQuery plugin that creates the basic interactivity for an ARIA dialog widget.

Expected dialog markup adheres to [bones](https://github.com/ianmcburnie/bones#user-content-dialog) convention:

```html
<div aria-labelledby="dialog-0-title" class="dialog" id="dialog-0" hidden role="dialog">
    <div role="document">
        <header>
            <button aria-label="Close Dialog" type="button"></button>
            <h2 id="dialog-0-title">Dialog Title</h2>
        </header>
        <div>
            <p>The dialog content goes here.</p>
            <a href="http://www.ebay.com">www.ebay.com</a>
        </div>
    </div>
</div>
```

Note the use of the 'hidden' attribute to ensure the dialog begins in a hidden state.

To activate the dialog using a button, ensure that the `jquery-dialog-button-for` data attribute refers to the id of the dialog:

```html
<button class="dialog-button" data-jquery-dialog-button-for="dialog-0" type="button">Open Dialog</button>
```

Then call the dialogButton plugin on the button:

```js
$('.dialog-button').dialogButton();
```

Or, to activate the dialog at page load time, call the dialog plugin directly:

```js
$('#dialog-0').dialog();
```

## Events

Dialog triggers two events when opened and closed:

* `dialogOpen`
* `dialogClose`

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