# Plugin: access to toolbarEvent from modal

**URL:** <https://meta.discourse.org/t/plugin-access-to-toolbarevent-from-modal/206413>\
**Category:** Development\
**Created:** [October 19, 2021, 7:02am UTC](https://meta.discourse.org/t/plugin-access-to-toolbarevent-from-modal/206413 "2021-10-19T07:02:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sirdavidoff](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sirdavidoff](https://meta.discourse.org/u/sirdavidoff)\
**Post date:** [October 19, 2021, 5:14pm UTC](https://meta.discourse.org/t/plugin-access-to-toolbarevent-from-modal/206413/3 "2021-10-19T17:14:18Z")

</div>

Thanks, Penar! I’m not quite there yet though:

I found the file you referenced in the `discourse-calendar` plugin (couldn’t find it in the poll one), but there it seems like the toolbarEvent is indeed being passed in the action (through `setProperties()`)?

> <https://github.com/discourse/discourse-calendar/blob/7d583a9aaf449a90662feb84441906a4c9e3ada5/assets/javascripts/initializers/add-event-ui-builder.js.es6#L43>

---

_[View the full topic](https://meta.discourse.org/t/plugin-access-to-toolbarevent-from-modal/206413)._
