salix/print/core/directives/pin.js

10 lines
252 B
JavaScript
Raw Normal View History

2019-10-31 11:43:04 +00:00
// DIRECTIVES NOT WORKING
const Vue = require('vue');
Vue.directive('pin', {
bind: function(el, binding, vnode) {
el.style.position = 'fixed';
el.style.top = binding.value + 'px';
el.style.backgroundColor = 'red';
}
});