# org.malai.ts-dev

> The typescript implementation of Malai (WIP)

Latest version **3.1.0-alpha.1.2.47** (published 2018-08-27) · GPL2 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install org.malai.ts-dev
pnpm add org.malai.ts-dev
yarn add org.malai.ts-dev
bun add org.malai.ts-dev
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.1.0-alpha.1.2.47 |
| Published | 2018-08-27 |
| First published | 2018-07-03 |
| Weekly downloads | 0 |
| License | GPL2 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 459.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Arnaud Blouin |
| Maintainers | digwendal |

## Links

- npm: https://www.npmjs.com/package/org.malai.ts-dev
- Repository: https://github.com/arnobl/Malai
- Homepage: https://github.com/arnobl/Malai#readme
- Issues: https://github.com/arnobl/Malai/issues
- npm.io page: https://npm.io/package/org.malai.ts-dev

## Dependencies (2)

- [npm](https://npm.io/package/npm.md) ^6.1.0
- [typescript-logging](https://npm.io/package/typescript-logging.md) 0.6.2

## Recent versions

- 3.1.0-alpha.1.2.47 (latest) — 2018-08-27
- 3.1.0-alpha.1.2.46 — 2018-08-23
- 3.1.0-alpha.1.2.45 — 2018-08-23
- 3.1.0-alpha.1.2.44 — 2018-08-23
- 3.1.0-alpha.1.2.43 — 2018-08-23
- 3.1.0-alpha.1.2.42 — 2018-08-22
- 3.1.0-alpha.1.2.41 — 2018-08-22
- 3.1.0-alpha.1.2.40 — 2018-08-02
- 3.1.0-alpha.1.2.39 — 2018-07-30
- 3.1.0-alpha.1.2.38 — 2018-07-30
- 3.1.0-alpha.1.2.37 — 2018-07-30
- 3.1.0-alpha.1.2.36 — 2018-07-27
- 3.1.0-alpha.1.2.35 — 2018-07-27
- 3.1.0-alpha.1.2.34 — 2018-07-26
- 3.1.0-alpha.1.2.33 — 2018-07-26
- … 36 more at https://npm.io/package/org.malai.ts-dev/versions

## README

[![Build Status](https://ci.inria.fr/malai/job/malai_typescript/badge/icon)](https://ci.inria.fr/malai/job/malai_typescript/) 
# MalaiTS :
The TypeScript implementation of [Malai](https://github.com/arnobl/Malai).

# How to install

As an npm package, just add org.malai.ts to your dependencies.

```json
{
"org.malai.ts": "latest"
}
```

# How to use

MalaiTS help you to easily bind command to the widgets of your HTML UI (button, textbox, div...).

We provide several functionality to do that :

## User Interaction :

We provide a lot of built-in User Interaction :
* Press a BoxCheck
* Press a button
* Choose in a selection (ChoiceBoxSelected)
* Click on a HTML element
* Picked a color (input event trigger the interaction, not change event)
* Drag and Drop
* Double click an element
* Drag Lock
* Click on a hyperlink
* Press a key on the keyboard
* Press and release a key on the keyboard (KeyTyped)
* Press a menu button (WIP, see [\<menu\>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu))
* Press one of the mouse button
* Scroll the document
* Change the value of a spinner
* Type a text (TextInputChanged)

## Binder :

The binders are the main purpose of [Malai](https://github.com/arnobl/Malai), it the system that help you build your interface. The binder possess two main element :
* the binder  , like ButtonBinder or ColorPickedBinder (one Binder for each interaction WIP)
* the bind() routine, that must be used to make the binder work

example :
``` typescript
nodeBinder<InteractionData, CommandeExecuted, Interaction>(i => new CommandeExecuted(i.getSomething)).bind()
```
In this example :
The function nodeBinder is a shortcut to

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