# mk-infopane

> Kind of a status-bar or notifier. Sliding messages in area with limited height.

Latest version **1.0.0** (published 2016-12-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install mk-infopane
pnpm add mk-infopane
yarn add mk-infopane
bun add mk-infopane
```

## 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 | 1.0.0 |
| Published | 2016-12-29 |
| First published | 2016-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mkant |
| Maintainers | mkant |
| Keywords | infopane, statusbar, notifier, messages, alert, UI, mobile, widget, CSS animation |

## Links

- npm: https://www.npmjs.com/package/mk-infopane
- Repository: https://github.com/m-kant/mk-infopane
- Homepage: http://mkant.ru/mink-js/mk-infopane/
- Issues: https://github.com/m-kant/mk-infopane/issues
- npm.io page: https://npm.io/package/mk-infopane

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-12-29

## README

mk-infopane
===============

Kind of a status-bar or notifier.
Sliding messages in area with limited height.
A library agnostic, mobile friendly, css animated UI widget.
Minimal restrictions on styling.

Developed for mobile, but turned out to be useful for desktops.

[Demo](http://mkant.ru/mink-js/mk-infopane)

Inclusion
------------

Include script and style sheet into you page:
```HTML
<script src="path/to/plugin/mk-infopane.min.js"></script>
<link href="path/to/plugin/mk-infopane.min.css" rel="stylesheet">
```

Usage
-----------
Create html block you want to use as an infopane.
```HTML
<div id="paneElement"></div>
```

Create infopane instance, binded to DOM element.
```JavaScript
var pane = new mk.Infopane( paneElement[,options] );
```

Publish messages with different styles to pane
```JavaScript
pane.echo(text[, options])
pane.ok  (text[, options])
pane.warn(text[, options])
pane.err (text[, options])
pane.info(text[, options])
```

Publish messages with custom styles
```JavaScript
pane.print(options);
```

Control published messages
```JavaScript
var message = pane.info (text, options); // create and print message
message.put(newText); // replace text in it
message.append(additionalText); // add text
setTimeout(function(){ message.unpublish(); },10000) // close it later
```

Pane options
------------
* height {integer}
* collapse {boolean}
* onMessage {function}
* onMessageRemove {function}


[Details and Demo](http://mkant.ru/mink-js/mk-infopane)
--------------------------------------------------------

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