CngxDialogDescription
projects/common/dialog/dialog/dialog-description.directive.ts
Import#
import { CngxDialogDescription } from '@cngx/common/dialog'
Description#
Marks an element as the dialog's description for ARIA.
Automatically generates a deterministic ID and registers with the
parent CngxDialog for aria-describedby.
<dialog cngxDialog>
<h2 cngxDialogTitle>Delete item?</h2>
<p cngxDialogDescription>This action cannot be undone.</p>
…
</dialog>Metadata#
Host#
Index#
Instance Properties#
unknownAuto-generated unique ID bound to the host [id] attribute.
Used by CngxDialog for aria-describedby. When a parent CngxDialog
is present, the ID is derived from the dialog's ID (e.g. cngx-dialog-0-desc).
signal(nextUid('cngx-dialog-desc'))HostBindings#
| Binding | Expression |
|---|---|
[id] | id() |