QuerySelector_v2 Op

QuerySelector

Selects an element in the DOM


<p>If you want to do something with an element, you can get it from the DOM using QuerySelector. See <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector">developer.mozilla.org – querySelector</a>.</p>


Full Name
  • Ops.Html.QuerySelector_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches


INPUT PORTS


Update (Trigger)
Query (String)

<p>E.g. &quot;.some-classname&quot;, &#39;#some-id&#39; or &quot;footer&quot;</p>

Mode index (Number:

<i>integer</i>

)

Type index (Number:

<i>integer</i>

)

Document (String)

OUTPUT PORTS


Element (Object)

<p>The first element which can be found using the query or null (no results)</p>


Patches using QuerySelector_v2

  • Examples
  • Public
  • My Patches

Changelog


newcreated opuser avatartim - 2020-02-19 16:30
improvementcatch and show errors to the useruser avatarpandur - 2024-09-12 15:21