Hello,
I’m using f7-react and I would like to register handlers for onResize() and onInit() events.
I’m trying to add the handler to the App component like this, but no luck.
Any ideas?
In F7 classic this is done when calling new Framework7()…
Thanks,
Jure
Ok, I got it. configured f7params like this:
`
const f7params = {
name: 'ethapp2', // App name
theme: 'auto', // Automatic theme detection
// App store
store: store,
// App routes
routes: routes,
on: {
resize: function() {
console.log(`resized`);
// widget resize
},
init: function() {
console.log(`inited`);
}
},
`
1 Like