Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/srukshan98/smartchipcontainer
- Owner: srukshan98
- License: mit
- Created: 2020-08-02T03:54:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-05T11:29:16.000Z (over 1 year ago)
- Last Synced: 2024-10-13T12:51:29.052Z (3 months ago)
- Topics: angular, angular-material, chips, minimal
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/ngs-chip-container
- Size: 2.6 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Contributing: .github/contributing.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
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]).