Skip to main content
cngx-src documentation

CngxChipRemovalHandler

Interface

projects/forms/select/shared/chip-removal-handler.ts

Import#

import { CngxChipRemovalHandler } from '@cngx/forms/select'

Description#

API returned from createChipRemovalHandler.

Index#

Methods#

removeByValue#void
removeByValue(item: Item)

Apply the removal body. Bind directly to (remove) or Backspace.

@paramitemItem
removeFor#void
removeFor(item: Item)

Stable closure wrapping removeByValue, cached per-item via WeakMap. Safe to pass into chip-slot context without view thrash.

@paramitemItem