Drupal 8在对话框关闭后执行某些操作

时间:2019-01-18 15:03:37

标签: jquery jquery-ui-dialog drupal-8

我有此链接,可使用Drupal 8触发打开对话框

对话框关闭时我需要在JS中做些什么

我应该写什么?

<div class="fullcalendar-bottom-btn add-event-btn">
<a id="calendar-add-event"  href="{{ language }}fullcalendar-view-event-add?entity={{ entity_id }}&bundle={{ options.bundle_type }}&start_field={{ options.start }}&end_field={{ options.end }}&destination={{ path('<current>') }}" class="use-ajax" data-dialog-type="dialog" data-dialog-renderer="off_canvas" data-dialog-options="{&quot;width&quot;:400}">{{ 'Add event'|t }}</a>
</div>

1 个答案:

答案 0 :(得分:0)

我现在正在为此苦苦挣扎。

从理论上讲,data-dialog-options应该接受jQuery UI Dialog接受的任何有效选项,但是内核中没有使用closebeforeClose的示例。

相关问题