kenga-labels v0.0.54
Kenga labels
Kenga "image with text" widgets.
Install
To install kenga-labels package to your project, type the following command:
npm install kenga-labels --save
Using
The simple way to use a Label is to write something like const l = new Label('Hello!');
The label holds property 'icon', which can be assigned to any DOM element (typically 'IMG').
Architecture
This package contains a base class for image with text widgets, - ImagePagaraph.
Such widgets are combinations of text and image. They hold property 'icon', which can be assigned to any DOM element.
Typically it is 'IMG' element. Image paragarph govens text placement against icon element. It can be placed to the 'left, 'right', 'center', 'top' and 'bottom'.
To get rid of literal contants in your code, you can use kenga constants VerticalPosition.* and HorizontalPosition from kenga/utils module.
1 year 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
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
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 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
9 years ago
9 years ago