# Kann nicht auf Element zugreifen, das im Plugin-Outlet mit der DOM-Schnittstelle definiert ist

**URL:** <https://meta.discourse.org/t/cant-access-element-defined-in-plugin-outlet-with-dom-interface/185213>\
**Category:** Development\
**Created:** [2. April 2021 um 06:44 UTC](https://meta.discourse.org/t/cant-access-element-defined-in-plugin-outlet-with-dom-interface/185213 "2021-04-02T06:44:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![MrDavis97](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrdavis97/32/206391_2.png) [@MrDavis97](https://meta.discourse.org/u/MrDavis97)\
**Post date:** [3. April 2021 um 00:00 UTC](https://meta.discourse.org/t/cant-access-element-defined-in-plugin-outlet-with-dom-interface/185213/4 "2021-04-03T00:00:24Z")

</div>

Ich habe es herausgefunden:

```plaintext
api.decoratePluginOutlet(
       "below-site-header",
       (elem, args) => {
           const button = document.getElementById('vic-button');
           console.log(button);
       }
    );

```

Die Ausgabe zeigt genau das, was ich brauche. Und jetzt kann ich das Element manipulieren!

---

_[View the full topic](https://meta.discourse.org/t/cant-access-element-defined-in-plugin-outlet-with-dom-interface/185213)._
