Skip to content
angulux
@anguless/angulux/chip

Chip

1 declaration3 demoschip.md
import
import { ChipModule } from '@anguless/angulux/chip';

Basic

A chip displays its label.

Action
<agl-chip label="Action" />

Icon

An icon is shown before the label with the icon property.

Apple
Facebook
Google
<agl-chip label="Apple" icon="pi pi-apple" /><agl-chip label="Facebook" icon="pi pi-facebook" /><agl-chip label="Google" icon="pi pi-google" />

Removable

A removable chip gains a control that takes it out of the DOM.

Action
Comedy
<agl-chip label="Action" [removable]="true" /><agl-chip label="Comedy" icon="pi pi-star" [removable]="true" />

API

Generated from the committed corpus, which check:corpus holds to the built library.

Chip

componentagl-chip

Chip represents people using icons, labels and images.

InputTypeDefaultDescription
labelstring | undefinednot documentedDefines the text to display.
iconstring | undefinednot documentedDefines the icon to display.
imagestring | undefinednot documentedDefines the image to display.
altstring | undefinednot documentedAlt attribute of the image.
styleClass
deprecated — since v20.0.0, use `class` instead.
string | undefinednot documentedClass of the element.
disabledboolean | undefinednot documentedWhen present, it specifies that the element should be disabled.
removableboolean | undefinednot documentedWhether to display a remove icon.
removeIconstring | undefinednot documentedIcon of the remove element.
chipPropsChipProps | undefinednot documentedUsed to pass all properties of the chipProps to the Chip component.
OutputTypeDescription
onRemoveEventEmitter<MouseEvent>Callback to invoke when a chip is removed.
onImageErrorEventEmitter<Event>This event is triggered if an error occurs while loading an image file.
Template slotDescription
<ng-template #removeicon>Custom remove icon template.

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. Keys become attributes, and a key that names a DOM property is also assigned to that property. Values the browser would execute go through Angular's sanitizer first, as in a template binding: markup in `innerHTML`, `outerHTML` and `srcdoc`, and URLs in `href`, `src`, `action`, `formaction` and `xlink:href`. To write one of those unsanitized on purpose, pass a `DomSanitizer.bypassSecurityTrustHtml` or `bypassSecurityTrustUrl` value. An `on*` key must be a function, and any other value for it is ignored. Keys themselves are applied as given, so let data from users choose values, never keys.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.