popupId property

  1. @override
set popupId (String? id)
override

Set the DOM ID of the popup controlled by this source.

Setting this ensures that popups get ARIA a11y attributes.

Implementation

@override
set popupId(String? id) {
  _id = id;
  if (_id == null || !_initAriaAttributes) return;
  sourceElement.setAttribute('aria-haspopup', 'true');
}