Enables/disables the draggable element animation when the element is released. By default it's set to true.
Emits an event when the IgxChipComponent
is clicked.
Returns the clicked IgxChipComponent
, whether the event should be canceled.
Stores data related to the chip.
Disables the IgxChipComponent
. When disabled it restricts user interactions
like focusing on click or tab, selection on click or Space, dragging.
By default it is set to false.
Property that contains a reference to the IgxDragDirective
the IgxChipComponent
uses for dragging behavior.
Emits an event when the IgxChipComponent
has been dropped in the IgxChipsAreaComponent
.
Returns the target IgxChipComponent
, the drag IgxChipComponent
, as well as
the original drop event arguments.
Emits an event when the IgxChipComponent
has entered the IgxChipsAreaComponent
.
Returns the target IgxChipComponent
, the drag IgxChipComponent
, as well as
the original drop event arguments.
Emits an event when the IgxChipComponent
has left the IgxChipsAreaComponent
.
Returns the target IgxChipComponent
, the drag IgxChipComponent
, as well as
the original drop event arguments.
Emits an event when the IgxChipComponent
is over the IgxChipsAreaComponent
.
Returns the target IgxChipComponent
, the drag IgxChipComponent
, as well as
the original drop event arguments.
Defines if the IgxChipComponent
can be dragged in order to change it's position.
By default it is set to false.
Enables/disables the hiding of the base element that has been dragged. By default it's set to true.
Sets the value of id
attribute. If not provided it will be automatically generated.
Emits an event when the IgxChipComponent
keyboard navigation is being used.
Returns the focused/selected IgxChipComponent
, whether the event should be canceled,
if the alt
, shift
or control
key is pressed and the pressed key name.
Emits an event when the IgxChipComponent
moving ends.
Returns the moved IgxChipComponent
.
Emits an event when the IgxChipComponent
moving starts.
Returns the moving IgxChipComponent
.
Defines if the IgxChipComponent
should render remove button and throw remove events.
By default it is set to false.
Emits an event when the IgxChipComponent
is removed.
Returns the removed IgxChipComponent
.
Overrides the default icon that the chip applies to the remove button.
Returns the role
attribute of the chip.
Overrides the default icon that the chip applies when it is selected.
Defines if the IgxChipComponent
can be selected on click or through navigation,
By default it is set to false.
Emits event when the IgxChipComponent
is selected/deselected and any related animations and transitions also end.
Emits event when the IgxChipComponent
is selected/deselected.
Returns the selected chip reference, whether the event should be canceled, what is the next selection state and
when the event is triggered by interaction originalEvent
is provided, otherwise originalEvent
is null
.
Sets/gets the variant of the chip.
Returns the background color of the IgxChipComponent
.
@ViewChild('myChip')
public chip: IgxChipComponent;
ngAfterViewInit(){
let chipColor = this.chip.color;
}
Sets the IgxChipComponent
background color.
The color
property supports string, rgb, hex.
An accessor that returns the resource strings.
An accessor that sets the resource strings. By default it uses EN resources.
Returns if the IgxChipComponent
is selected.
@ViewChild('myChip')
public chip: IgxChipComponent;
selectedChip(){
let selectedChip = this.chip.selected;
}
Sets the IgxChipComponent
selected state.
<igx-chip #myChip [id]="'igx-chip-1'" [selectable]="true" [selected]="true">
Two-way data binding:
<igx-chip #myChip [id]="'igx-chip-1'" [selectable]="true" [(selected)]="model.isSelected">
Sets the value of tabindex
attribute. If not provided it will use the element's tabindex if set.
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
Chip is compact visual component that displays information in an obround.
Igx Module
IgxChipsModule
Igx Theme
igx-chip-theme
Igx Keywords
chip
Igx Group
display
Remarks
The Ignite UI Chip can be templated, deleted, and selected. Multiple chips can be reordered and visually connected to each other. Chips reside in a container called chips area which is responsible for managing the interactions between the chips.
Example