ariaDescribedBy method

ElementBuilder ariaDescribedBy(
  1. String id
)

References another element by ID for accessible description.

Example:

Input().ariaDescribedBy('help-text')

Implementation

ElementBuilder ariaDescribedBy(String id) {
  attr('aria-describedby', StringAttribute(id));
  return this;
}