framework7

Open full view…

Can the Speed Dial be made 'open' permanently?

neekfenwick
Thu, 19 Oct 2017 07:47:24 GMT

We have a page with two areas, a map and some HTML controls. A Speed Dial widget sits in the bottom right and gives access to some functionality. When the page goes into a certain mode, we full-screen the map, and the functions in the speed dial become highly relevant. We want to 'open' the speed dial programatically, and prevent it being closed by the user, while the app is in this mode. Once the user leaves the full-screen mode, it can be closed again. Because the user uses the speed dial while not in full screen mode, it would be beneficial to the user experience to keep exactly the same speed dial buttons in full screen mode, so I would rather not completely replace the speed dial widget while in full screen mode, if possible. I've looked at the code for opening the speed dial and it seems tightly bound with onTouchEnd events that are hardwired to open/close it. I tried adding my own event handler for onTouchEnd and preventDefault() and stopPropagation() on the event, but this did not achieve anything, I presume my handler is added after the framework7 one and so is called too late. Is it possible to force it to stay open? Or would you recommend some other widget to perform similar functionality? (if so, which?)