# citong-dialog

> Alert / confirm message box for html

Latest version **0.0.2** (published 2016-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install citong-dialog
pnpm add citong-dialog
yarn add citong-dialog
bun add citong-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.0.2 |
| Published | 2016-12-01 |
| First published | 2016-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | brainpoint |

## Links

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

## Recent versions

- 0.0.2 (latest) — 2016-12-01
- 0.0.1 — 2016-12-01

## README

The alert/confirm dialog for html;

# usage

```js
/** hide dialog */
function hideDialog()
```

```js
/**
* ctx.content:		 内容文字.
* ctx.confirm: function(){}	// 点击确认键的回调.
* ctx.okText
*/
function showAlert(ctx)
```
![image](alert.jpg)

```js
/**
* ctx.content:		 内容文字.
* ctx.confirm: function(){}	// 点击确认键的回调.
* ctx.cancel:  function(){} // 点击取消键的回调.
* ctx.okText:
* ctx.cancelText:
*/
function showConfirm(ctx)
```
![image](confirm.jpg)

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