Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@covalent/chips

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@covalent/chips

Teradata UI Platform Chips Module

  • 0.9.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by133.33%
Maintainers
2
Weekly downloads
 
Created
Source

td-chips

td-chips element generates a list of strings as chips.

Add the [items] attribute to enable the autocomplete with a search list, and [requireMatch] to validated the input against the provided search list.

API Summary

Properties:

NameTypeDescription
items?string[]Enables Autocompletion with the provided list of search strings.
readOnlybooleanDisables the chip input and removal.
requireMatch?booleanValidates input against the provided search list before adding it to the model. If it doesnt exist, it cancels the event.
placeholder?stringPlaceholder for the autocomplete input.
add?functionMethod to be executed when string is added as chip through the autocomplete. Sends chip value as event.
remove?functionMethod to be executed when string is removed as chip with the "remove" button. Sends chip value as event.

Setup

Import the [CovalentChipsModule] using the forRoot() method in your NgModule:

import { CovalentChipsModule } from '@covalent/chips';
@NgModule({
  imports: [
    CovalentChipsModule.forRoot(),
    ...
  ],
  ...
})
export class MyModule {}

Usage

Example for HTML usage:

<td-chips placeholder="placeholder" [items]="items" [(ngModel)]="model" [readOnly]="readOnly" (add)="addEvent($event)" (remove)="removeEvent($event)" requireMatch>
</td-chips>  

Keywords

FAQs

Package last updated on 23 Nov 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc