CngxTabDismissals
projects/common/tabs/dismissals/tab-dismissals.ts
Referenced by#
Import#
import { CngxTabDismissals } from '@cngx/common/tabs'
Description#
Resolved dismissable/addable surface for <cngx-tab-group>.
The organism holds this as one field and the template reads it.
Index#
Instance Properties#
SignalLive-region phrase confirming a landed close (i18n.closedTab).
Derived from the registry transition - it updates when a requested
close's id actually leaves the registry, so an async consumer
removal announces on completion, not on request. Feed it into
createTabGroupAnnouncements (options.closedAnnouncement) so the
live region resolves one priority chain.
Methods#
CngxTabCloseIconContextcloseIconContextFor(tab: CngxTabHandle)Stable *cngxTabCloseIcon context ({ tab }) per tab.
handleClose(tab: CngxTabHandle, event?: Event)Close a tab and restore focus to the new active tab / add button.
handleTabKeydown(tab: CngxTabHandle, event: KeyboardEvent)Delete on a focused closable tab requests its close (APG).
KeyboardEvent