Curious if we have access to libraries necessary to use popups in our custom apps? I have no idea how to do this at the moment but wanted to see if it's possible before going down this rabbit hole!
If we do, any direction would be greatly appreciated! lol
Depending on what you want to do, I found pop-ups, at least the way I wanted to do it, quite difficult to master when a group of inputs were displayed together, but I did eventually solve it. You can take a look here if you are interested.
Sorry, I should have been more clear. I've been using tool tips in my apps (especially Event Engine) for years. I'm looking for a pop up window like in the new Visual Rules.
I want to say I did similar at one point with app endpoints and an app constructed HTML that I opened in a new window but didn't like the result so stopped pursuing it. I'll look and see if I still have the code but...
Yeah, I figured that but was hoping someone knew how to do something similar within Groovy. Not looking to copy it, but would be fun to poke around with.
I think your best bet in a user app if you want something this different is to serve whatever UI (or whatever content) you want via OAuth endpoints, as @thebearmay sounds like he tried. (This is how the actual dashboard part of Hubitat Dashboard works, and some community apps like Z-Wave Mesh Details use it for the actual app functionality, too--though there isn't escaping the need to select devices in the actual Hubitat app first for user code.)
You probably could finagle something into a "regular" app since it's easy to inject arbitrary HTML (as people have done with tricks like tables, for example), but with less control over what happens outside that, I doubt it will be easy. But maybe someone has tried...
Something else that might work is building a HTML div within the app that you can flip the CSS display element from block to hidden as required. If done correctly you may be able use “regular” app inputs to capture your interactions.
That's what the iFrameAdvanced driver uses to display pop-up HTML content on a dashboard, just not sure how you would go including device selections or other app inputs, as @bertabcd1234 mentioned.