New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@code-workers.io/ngx-list

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-workers.io/ngx-list

A generic and customizable list component for Angular. ## Installation ```bash npm i @code-workers.io/ngx-list ```

latest
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

@code-workers.io/ngx-list

A generic and customizable list component for Angular.

Installation

npm i @code-workers.io/ngx-list

Why?

Lists are a very common UI component in almost every application. However, to build a really generic and flexible list component, in terms of the appearance of the list items some advanced techniques are required.

Those advanced techniques are often either not well enough documented or just not really known.

Features

  • OnPush change detection
  • Customizable list item
  • Customizable list item context
  • Generic
  • Tiny bundle size

Demo

Live Demo

Usage

// in some component
<ngx-list
    [items]="items"
  <ng-template [ngxListContext]="items" let-item let-active="active" let-selected="selected">
    <div (click)="onSelect(item)"
      class="border border-gray-300 shadow-lg rounded-lg bg-white px-10 py-8 mb-4"
        [class.item_active]="active"
        [class.item_selected]="selected"
        >
      <span >{{item.name}} | {{item.id}} </span>
    </div>
  </ng-template>
</ngx-list>


The Styles:

.item_active {
  @apply bg-gray-300/30;
}
.item_selected {
  @apply bg-blue-500/30;
}

The styles are built with Tailwind CSS

Compatibility

  • version 1.x.x is compatible with Angular v13.0.0 and higher

Keywords

angular

FAQs

Package last updated on 23 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts