File

projects/ui-kit-lib/src/lib/v2/modals/dialog-content-directives.ts

Description

Dialog title directive.

  • Adds semantic/title classes to the host.
  • Generates a unique id that is used to label the dialog via aria-labelledby.
  • Notifies the container to add/remove this id from its aria-labelledby list.

Extends

DialogLayoutSection

Metadata

Index

Properties
Methods
Inputs

Inputs

id
Type : string
Default value : inject(_IdGenerator).getId('mdc-dialog-title-')

Unique id used by the container for aria-labelledby.

Methods

Protected _onAdd
_onAdd()

Register this title id with the container for a11y.

Returns : void
Protected _onRemove
_onRemove()

Unregister this title id on destroy.

Returns : void

Properties

Protected _dialogRef
Type : unknown
Default value : inject<MefDevDialogRef<any>>(MefDevDialogRef, {optional: true})!

Reference to the owning dialog (if any).

results matching ""

    No results matching ""