@chitovas/ngx-clamp 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @chitovas/ngx-clamp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
|
+
[](https://www.npmjs.com/package/@chitovas/ngx-clamp)
|
|
5
|
+

|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
Welcome to @chitovas/ngx-clamp, an Angular library designed to elegantly manage text overflow within HTML elements. This library allows you to clamp text, adding ellipsis or a truncation text of your choice when the content exceeds a specified height.
|
|
8
|
+
|
|
9
|
+
## Motivation
|
|
6
10
|
|
|
7
11
|
Solves overflow issues on older legacy browsers that don't support the `-webkit-line-clamp` or `line-clamp` property, ensuring consistent behavior across different platforms.
|
|
8
12
|
|
|
@@ -19,13 +23,13 @@ Solves overflow issues on older legacy browsers that don't support the `-webkit-
|
|
|
19
23
|
Install the package using npm:
|
|
20
24
|
|
|
21
25
|
```bash
|
|
22
|
-
npm install @
|
|
26
|
+
npm install @chitovas/ngx-clamp
|
|
23
27
|
```
|
|
24
28
|
|
|
25
29
|
## Usage
|
|
26
30
|
|
|
27
31
|
```ts
|
|
28
|
-
import { NgxClamp } from '@
|
|
32
|
+
import { NgxClamp } from '@chitovas/ngx-clamp';
|
|
29
33
|
|
|
30
34
|
@Component({
|
|
31
35
|
selector: 'my-component',
|
|
@@ -45,4 +49,4 @@ export class MyComponent {}
|
|
|
45
49
|
|
|
46
50
|
## License
|
|
47
51
|
|
|
48
|
-
@
|
|
52
|
+
@chitovas/ngx-clamp is released under the MIT License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chitovas/ngx-clamp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"author": "Nigel Mukandi",
|
|
5
5
|
"description": "angular library designed to elegantly manage text overflow within HTML elements. This library allows you to clamp text, adding ellipsis or a truncation text of your choice when the content exceeds a specified height.",
|
|
6
6
|
"repository": {
|