3.1.0-alpha.1.2.47 • Published 6 years ago

org.malai.ts-dev v3.1.0-alpha.1.2.47

Weekly downloads
3
License
GPL2
Repository
github
Last release
6 years ago

Build Status

MalaiTS :

The TypeScript implementation of Malai.

How to install

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

{
"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>)
  • 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, 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 :

nodeBinder<InteractionData, CommandeExecuted, Interaction>(i => new CommandeExecuted(i.getSomething)).bind()

In this example : The function nodeBinder is a shortcut to