0.0.53 • Published 6 months ago

kenga v0.0.53

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
6 months ago

Kenga

Kenga is an ultra lightweight visual widgets library for a browser. It uses only morden approaches to layout handling, input widgets building.

It contains no layout resize code, uses HTML5 inputs, etc. It is written solely in ES6.

There is a WYSIWYG editor of kenga views, composed of kenga widgets itself - Winnie.

You can try KengaJS Designer Demo

Install

To install kenga package to your project, type the following command:

npm install kenga --save

Using

To use kenga widgets, install and use one of the following packages:

  • kenga-containers
  • kenga-labels
  • kenga-buttons
  • kenga-model-buttons
  • kenga-fields
  • kenga-model-fields
  • kenga-menu
  • kenga-window
  • kenga-grid

or implement your own awesome widget.

After widget is ready, you can write something like this:

const w = new MyAwesome(); document.body.appendChild(w.element);

Architecture

Widget is a JavaScript class. It incapsulates a DOM element, and its layout rules. Layout rules are implmemented as pure CSS3 rules.

This package contains base classes for widgets:

  • Widget base class for all widgets. It contains parent and element properties, simple events handling, etc.
  • Container base class for container widgets. It supports container contract, i.e. methods add, remove, count, child(index), children.
  • BoxField base class for input widgets. It can be used as a core of decorated input widget.
  • Bound mixin, that implements two way data binding for any widget. Se how it is used in package kenga-model-buttons and kenga-model-fields.
  • Decorator mixin, that adds decorations to a widget, that allow a user to clear a widget's value and select a value with custom value selection dialog.
0.0.52

7 months ago

0.0.53

6 months ago

0.0.51

10 months ago

0.0.50

2 years ago

0.0.49

2 years ago

0.0.48

3 years ago

0.0.47

3 years ago

0.0.46

3 years ago

0.0.45

3 years ago

0.0.44

3 years ago

0.0.43

3 years ago

0.0.42

5 years ago

0.0.41

6 years ago

0.0.40

6 years ago

0.0.38

6 years ago

0.0.37

6 years ago

0.0.36

6 years ago

0.0.35

6 years ago

0.0.34

6 years ago

0.0.33

6 years ago

0.0.32

6 years ago

0.0.31

6 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago