Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

@covalent/search

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@covalent/search

Teradata UI Platform Search Box Module

latest
Source
npmnpm
Version
0.9.1
Version published
Maintainers
3
Created
Source

td-search-input

td-search-input element to generate a search input with its animated cancel button.

API Summary

Properties:

NameTypeDescription
debounce?numberDebounce timeout between keypresses. Defaults to 400.
placeholder?stringPlaceholder for the underlying input component.
showUnderline?booleanSets if the input underline should be visible. Defaults to 'false'.
searchDebouncefunction($event)Event emitted after the [debounce] timeout.
searchfunction($event)Event emitted after the key enter has been pressed.
clear?functionEvent emitted after the clear icon has been clicked.

Usage

Example for HTML usage:

<td-search-input placeholder="Search here" [showUnderline]="false|true" [debounce]="500" (searchDebounce)="searchInputTerm = $event" (search)="searchInputTerm = $event" (clear)="searchInputTerm = ''">
</td-search-input>

td-search-box element to generate a search box with animations.

API Summary

Properties:

NameTypeDescription
debounce?numberDebounce timeout between keypresses. Defaults to 400.
placeholder?stringPlaceholder for the underlying input component.
backIcon?stringThe icon used to close the search toggle, only shown when [alwaysVisible] is false. Defaults to 'search' icon.
showUnderline?booleanSets if the input underline should be visible. Defaults to 'false'.
alwaysVisible?booleanSets if the input should always be visible. Defaults to 'false'.
searchDebouncefunction($event)Event emitted after the [debounce] timeout.
searchfunction($event)Event emitted after the key enter has been pressed.
clear?functionEvent emitted after the clear icon has been clicked.

Usage

Example for HTML usage:

<td-search-box placeholder="Search here" [showUnderline]="false|true" [debounce]="500" [alwaysVisible]="false|true" (searchDebounce)="searchInputTerm = $event" (search)="searchInputTerm = $event" (clear)="searchInputTerm = ''">
</td-search-box>

Setup

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

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

Keywords

angular

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