Easy Mat UILive demoDocsGitHubnpm

Docs / Angular multi-select dropdown component

Angular multi-select dropdown component

lib-easy-multi-select is a standalone Angular Material multi-select with search and select-all.

Usage

import { Dictionary, EasyMultiSelect } from 'easy-mat-ui-ng20';

@Component({
  standalone: true,
  imports: [EasyMultiSelect],
  template: `
    <lib-easy-multi-select
      title="Countries"
      [data]="countries"
      valueField="key"
      displayField="value"
      [clearable]="true"
      (change)="selected = $event">
    </lib-easy-multi-select>`
})
export class Demo {
  countries = [new Dictionary('dz', 'Algeria'), new Dictionary('fr', 'France')];
  selected: string[] = [];
}

Inputs and output

NameDescription
dataItems to choose from: Dictionary[] ({ key, value })
titleLabel (translated)
valueField / displayFieldWhich property is emitted and which is shown (key or value)
selectedDataItems selected at start
clearableAdds a button that empties the selection
readOnlyShows the selection without letting the user change it
formField / appearanceMaterial form-field look: outline or fill
placeholderText shown while nothing is selected
compactDense 32 px field, used for column filters in table headers
(change)Emits the selected values (string[]) on every change

Open the live demo or read the source on GitHub.