Create button-preloader with template7 not initialized

Button-preloader cannot be used actively with Template7. I guess I can’t render and I couldn’t find the code to init.

If I put the code directly in the .f7 template, it works actively and the loader appears. But none of the buttons that I render with tempalte7 are actively working.

Can anyone tell me what I missed?

Thank you

My template7 code’s like:

Edit: I’ve added a partial screenshot because I couldn’t manage to add the codes here properly.

you need to use full preloader layout.

In this case, I also need to use condition for ios and android. Thanks!

or just move to template literals