Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/srukshan98/smartchipcontainer

This Library introduces an Intelligent way to hold Material Chips to make it only take the space needed.
https://github.com/srukshan98/smartchipcontainer

angular angular-material chips minimal

Last synced: about 2 months ago
JSON representation

This Library introduces an Intelligent way to hold Material Chips to make it only take the space needed.

Awesome Lists containing this project

README

        

#

Angular Smart Chip Container

![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)
[![Ask Me Anything !](https://img.shields.io/badge/Ask%20me-anything-1abc9c.svg)](https://GitHub.com/srukshan98)
[![GitHub issues](https://img.shields.io/github/issues/srukshan98/SmartChipContainer)](https://github.com/srukshan98/SmartChipContainer/issues)
[![GitHub license](https://img.shields.io/github/license/srukshan98/SmartChipContainer)](https://github.com/srukshan98/SmartChipContainer)

This Library introduces an Intelligent way to hold Material Chips to make it only take the space needed.

![Screenshot of Library in action](https://i.imgur.com/uZdbgNd.png)

## How to use

### Install

Run `npm install ngs-chip-container@latest` to install the latest version of Ngs Chip Container.

### Importing into Module with default Configuration

```typescript
@NgModule({
imports: [
NgsChipContainerModule.forRoot({
maxChipCount: 3, // Default Number of chips to be shown
tooltipLinebreak: true, // Default line break configuration for Tooltips
maxCharCount: 3, // Default Number of characters for chips to be shown
expandable: true // More chip will be expandable on click
})
]
})
```

### Importing into Module without default Configuration

```typescript
@NgModule({
imports: [
NgsChipContainerModule
]
})
```

### Using In Component - Simple

```html

// optional component specific configuration
{{Name1}}
{{Name2}}
{{Name3}}
{{Name4}}

```

### Using In Component - with loops

```html

// optional component specific configuration

{{name}}

```

## Further help

Please contact me via filing an [Issue](https://github.com/srukshan98/SmartChipContainer/issues) or directly E-mail at [[email protected]](mailTo:[email protected]).


GitHub Link
Twitter
LinkedIn
Sponsors