# Event on widget's creation

**URL:** https://meta.discourse.org/t/event-on-widgets-creation/50237
**Category:** Development
**Created:** [2016年九月16日 12:11 UTC](https://meta.discourse.org/t/event-on-widgets-creation/50237 "2016-09-16T12:11:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sevenmaxis](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)
#### Post date: [2016年九月16日 12:11 UTC](https://meta.discourse.org/t/event-on-widgets-creation/50237/1 "2016-09-16T12:11:05Z")

</div>

Is it possible to generate event when the widget created html-elements on page?  
I want to manipulate with this widget when it’s ready.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2016年九月16日 15:06 UTC](https://meta.discourse.org/t/event-on-widgets-creation/50237/2 "2016-09-16T15:06:26Z")

</div>

What widget are you referring to?

Usually this can be done but we need more information.

---

<div class="post-metadata">

### Author: ![sevenmaxis](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)
#### Post date: [2016年九月16日 15:24 UTC](https://meta.discourse.org/t/event-on-widgets-creation/50237/3 "2016-09-16T15:24:42Z")

</div>

I’m still working on ad-plugin, my idea is to use widget as more flexible way to display ads. For that I need an event when widget is rendered, then I can place DFP ads inside it.

---

<div class="post-metadata">

### Author: ![sevenmaxis](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)
#### Post date: [2016年九月17日 10:48 UTC](https://meta.discourse.org/t/event-on-widgets-creation/50237/4 "2016-09-17T10:48:34Z")

</div>

I think I can resolve this by Ember Run Loop, the `afterRender` queue
