2.4.1 • Published 12 months ago

ng-util-directive v2.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

ng-util-directive

Installation

npm i ng-util-directive

Requirements

Minimum angular version: 14.0.0

Available Directives

ImportDescriptionUsage
import { NgSkeletonModule } from 'ng-util-directive'A skeleton directive which shows as an overlay on top of the dom element<img (load)="loading = false" *skeletonLoader="loading; data: {shape: 'circle', size: '100px' }; hideOnLoading: true" style="width: 100px; height: 100px; border-radius: 50%;" src="avatar.svg"/>
import { NgContainerResizeModule } from 'ng-util-directive'A directive which emits the resize event for a container. Which internally uses ResizeObserver<div (containerResize)="handleContainerResize($event)">Some Content </div>
import { NgContainerIntersectionModule } from 'ng-util-directive'A directive which emits the intersection event for a container. Which internally uses IntersectionObserver<div (containerIntersection)="handleContainerIntersection($event)" [containerIntersectionOptions]="{rootMargin: '-200px', threshold: 1, root: rootElement}">Some Content </div>
import { NgDraggableModule } from 'ng-util-directive'A directive makes the host element draggable and makes it sticky to edges of screen<div draggable [draggableSticky]="true" draggableStickyMargins="1rem" draggableStickyTransition="left 0.3s ease" draggableTeleportTo="modal-container">Any content</div>
import { NgDebounceEventModule } from 'ng-util-directive'A directive which emits the given event with a provided debounce<input (debounceEvent)="handleEvent($event)" debounceEventName="input" [debounceEventTimer]="500" placeholder="Type something"/>
import { NgClickOutsideModule } from 'ng-util-directive'A directive which emits click event when clicked outside of the host element<div (clickOutside)="handleClickOutside($event)">Some Content</div>

Storybook Demo

Storybook Demo Link

Stackblitz Demo

Stackblitz Demo Link

2.4.1

12 months ago

2.3.0

1 year ago

2.2.0

1 year ago

2.1.1

1 year ago

2.4.0

1 year ago

2.1.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago