Skip to content
This repository was archived by the owner on Oct 31, 2022. It is now read-only.

Chips autocomplete

maxSS edited this page Sep 13, 2019 · 5 revisions
import { JamChipsAutocompleteModule } from 'ngx-jsonapi-material';

Selector: jam-chips-autocomplete

Properties
Name Value type Required Description
@Input() placeholder string false
@Input() resource Resource true
@Input() remoteFilter Params false
@Input() service Service<Resource> true
@Input() attributesDisplay Array<string> true
@Input() relationAlias string true
@Input() appearance 'standard' | 'outline' | 'legacy' | 'fill' false
@Input() matLabel string false

Chips autocomplete

<jam-chips-autocomplete
    matLabel="Search and add a book"
    placeholder="A Storm of Swords, A Feast for Crows, A Dance with Dragons"
    appearance="outline"
    relationAlias="books"
    [attributesDisplay]="['title', 'date_published', 'isbn']"
    [resource]="author"
    [service]="booksService"
></jam-chips-autocomplete>
Clone this wiki locally