Hi all,
I am curious how can i open popup from component file.
I’ve searched the forum and looks like there is two way.
one is using routing like
path: ‘/scheduleAdd/:memberKey/’,
popup:{
component: ScheduleAdd,
}
another way is in F7 document like
<f7-button @click=“createPopup” class=“reser_box”>
createPopup() {
const self = this;
// Create popup
if (!self.popup) {
self.popup = self.$f7.popup.create({
content: <ScheduleAdd/>,
});
}
// Open it
self.popup.open();
},
But i cannot really figure out how this works exactly with component in any of those ways…
anyone has ideas?
thank you