PopupSourceDirective constructor

PopupSourceDirective(
  1. DomPopupSourceFactory _domPopupSourceFactory,
  2. HtmlElement _element,
  3. @Optional() ReferenceDirective? _referenceDirective,
  4. @Optional() Focusable? _focusable,
  5. @Attribute('initPopupAriaAttributes') String? initAriaAttributes,
)

initPopupAriaAttributes is an attribute input that decide whether to set the popup related aria attributes. This defaults to true and can be set to false for cases where the popup source isn't the focus target.

Implementation

PopupSourceDirective(
    this._domPopupSourceFactory,
    this._element,
    @Optional() this._referenceDirective,
    @Optional() this._focusable,
    @Attribute('initPopupAriaAttributes') String? initAriaAttributes)
    : _initAriaAttributes =
          attributeToBool(initAriaAttributes, defaultValue: true);