# How to actually define the action inside a widget

**URL:** <https://meta.discourse.org/t/how-to-actually-define-the-action-inside-a-widget/42081>\
**Category:** Development\
**Created:** [April 5, 2016, 5:44pm UTC](https://meta.discourse.org/t/how-to-actually-define-the-action-inside-a-widget/42081 "2016-04-05T17:44:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)\
**Post date:** [April 5, 2016, 6:46pm UTC](https://meta.discourse.org/t/how-to-actually-define-the-action-inside-a-widget/42081/2 "2016-04-05T18:46:51Z")

</div>

I use a few actions in the voting plugin. You might find a good reference here:

[https://github.com/joebuhlig/discourse-feature-voting/blob/master/assets/javascripts/initializers/feature-voting.js.es6#L7](https://github.com/joebuhlig/discourse-feature-voting/blob/master/assets/javascripts/initializers/feature-voting.js.es6#L7)

---

_[View the full topic](https://meta.discourse.org/t/how-to-actually-define-the-action-inside-a-widget/42081)._
