F7 v2 doesn't support new way to build DOM?


I want dynamically add element on page.
It works great with old method:
$('<div class="myClass">text2</div>').appendTo($parent);

but the new one doesn’t show an element or some errors:
appendTo: $parent,
‘class’ : ‘myClass’,
html : ‘text1’

F7 doesn’t support this variant and I should use Jquery?

Yes, such notation is not supported as it is a jQuery-only realisation

1 Like