How to use the @material/chips.chipCssClasses.HIDDEN_LEADING_ICON function in @material/chips

To help you get started, we’ve selected a few @material/chips examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github trimox / angular-mdc-web / packages / chips / chip.ts View on Github external
set selected(value: boolean) {
    const newValue = coerceBooleanProperty(value);
    this._selected = newValue;
    this._foundation.setSelected(newValue);

    if (this.filter && this.leadingIcon) {
      this.leadingIcon.elementRef.nativeElement.classList.remove(chipCssClasses.HIDDEN_LEADING_ICON);
    }
  }
  private _selected: boolean = false;