traefik/webui/src/_directives/resize.js
2020-07-15 20:14:04 +02:00

8 lines
218 B
JavaScript

import Vue from 'vue'
import iFrameResize from 'iframe-resizer/js/iframeResizer'
Vue.directive('resize', {
bind: function (el, { value = {} }) {
el.addEventListener('load', () => iFrameResize(value, el))
}
})