mainElement property

HTMLElement? mainElement

Gets or sets the primary HTML Element that represents this HTMLInfo. In a context menu, this would be the outermost HTML element, the one which typically shows and hides. If this is set and #hide is not, HTMLInfo will automatically execute:

  tool.mainElement.style.display = "none";

when #hide would typically be called.

This is set only for convenience; the default value for this property is null.

Implementation

_i6.HTMLElement? get mainElement => _i4.getProperty(
      this,
      'mainElement',
    );
void mainElement=(HTMLElement? value)

Implementation

set mainElement(_i6.HTMLElement? value) {
  _i4.setProperty(
    this,
    'mainElement',
    value ?? _i5.undefined,
  );
}