wire method

Tooltip wire(
  1. Element element,
  2. [Tooltip create(

    Retrieve the wired Tooltip object from an element. If there is no wired

    • Tooltip object, a new one will be created.
      • create - If provided, it will be used for Tooltip creation. Otherwise
    • the default constructor with no optional parameter value is used.


    static Tooltip wire(Element element, [Tooltip create()]) =>
        p.wire(element, _name, create ?? (() => new Tooltip(element)));