0.0.61 • Published 5 months ago

kenga v0.0.61

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
5 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.60

7 months ago

0.0.61

5 months ago

0.0.59

8 months ago

0.0.56

8 months ago

0.0.57

8 months ago

0.0.58

8 months ago

0.0.55

9 months ago

0.0.54

12 months ago

0.0.52

2 years ago

0.0.53

2 years ago

0.0.51

2 years ago

0.0.50

3 years ago

0.0.49

3 years ago

0.0.48

4 years ago

0.0.47

4 years ago

0.0.46

4 years ago

0.0.45

4 years ago

0.0.44

4 years ago

0.0.43

4 years ago

0.0.42

6 years ago

0.0.41

7 years ago

0.0.40

7 years ago

0.0.38

7 years ago

0.0.37

7 years ago

0.0.36

7 years ago

0.0.35

7 years ago

0.0.34

7 years ago

0.0.33

7 years ago

0.0.32

7 years ago

0.0.31

7 years ago

0.0.30

7 years ago

0.0.29

7 years ago

0.0.28

7 years ago

0.0.27

7 years ago

0.0.26

7 years ago

0.0.25

7 years ago

0.0.24

8 years ago

0.0.23

8 years ago

0.0.22

8 years ago

0.0.21

8 years ago

0.0.20

8 years ago

0.0.19

8 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago