kenga v0.0.61
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 --saveUsing
To use kenga widgets, install and use one of the following packages:
kenga-containerskenga-labelskenga-buttonskenga-model-buttonskenga-fieldskenga-model-fieldskenga-menukenga-windowkenga-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:
Widgetbase class for all widgets. It containsparentandelementproperties, simple events handling, etc.Containerbase class for container widgets. It supports container contract, i.e. methodsadd,remove,count,child(index),children.BoxFieldbase class for input widgets. It can be used as a core of decorated input widget.Boundmixin, that implements two way data binding for any widget. Se how it is used in packagekenga-model-buttonsandkenga-model-fields.Decoratormixin, 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.
1 year ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago