traefik/webui/src/_directives/resize.js

9 lines
218 B
JavaScript
Raw Normal View History

2020-05-19 07:12:53 +00:00
import Vue from 'vue'
import iFrameResize from 'iframe-resizer/js/iframeResizer'
Vue.directive('resize', {
bind: function (el, { value = {} }) {
el.addEventListener('load', () => iFrameResize(value, el))
}
})