How do i include and use the DOM7 syntax in my F7-Vue application ?
You have it on every vue componente.
this.Dom7()
1 Like
Okay, I mean i want to target specific elements when a certain event happens via my javascript
Like to do something like this $$(selector).focus();
i dont know how you import f7.
but i think you also have it globally
Dom7(selector).focus()
or in app init
window.$$ = Dom7
then you will have $$ on window
1 Like
Or just import it in files where you need to use it:
import $ from 'dom7';
// somewhere
$('.something').addClass('foo');
Or as this.$$
:
const $ = this.$$;
$('.something').addClass('foo');