Skip to main content
cngx-src documentation

createFieldControlAria

Functionforms/fieldv0.1.0

projects/forms/field/field-control-aria.ts

Description#

Field-control ARIA scaffolding shared by every control that provides CNGX_FORM_FIELD_CONTROL against a surrounding cngx-form-field: id/disabled/errorState/focused plus the ARIA projection (describedby/labelledby/invalid/required/busy/errormessage/readonly/ disabled) and the focus handlers. Sibling of createFieldSync; unlike the sync it needs no injection context - the caller passes its (optional) presenter.

The host still owns its bindings: each directive binds only the signals its host template declares, and control-specific surfaces (empty, aria-label fallbacks) stay in the control.

Signature#

createFieldControlAria(presenter, options: FieldControlAriaOptions)

Parameters#

@parampresenter
@paramoptionsFieldControlAriaOptions= {}

Returns#

FieldControlAria