# Rendering Component in decorativeWidget API

**URL:** <https://meta.discourse.org/t/rendering-component-in-decorativewidget-api/58537>\
**Category:** Development\
**Created:** [March 7, 2017, 10:20am UTC](https://meta.discourse.org/t/rendering-component-in-decorativewidget-api/58537 "2017-03-07T10:20:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Clement\_Decou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clement_decou/32/67776_2.png) [@Clement\_Decou](https://meta.discourse.org/u/Clement_Decou)\
**Post date:** [March 7, 2017, 10:20am UTC](https://meta.discourse.org/t/rendering-component-in-decorativewidget-api/58537/1 "2017-03-07T10:20:27Z")

</div>

Hello,

I have a component to render ads in my discourse `{{numeramaAdsBlock "side_ad"}}` and i want to render this component inside the sticky sidebar in a topic. So i use decorateWidget to add my component inside the widget “topic-timeline-container”

```
export default {
    name: 'sidebar-topic',
    initialize(container) {

        withPluginApi('0.2', api => {
            api.decorateWidget('topic-timeline-container:before', dec => {
                // rendering my component with params
            });
        });
    },
}; 

```

How can i render my component with the params ? Thanks.

Edit : Up ?

---

_[View the full topic](https://meta.discourse.org/t/rendering-component-in-decorativewidget-api/58537)._
