Dev Diary Ep72 - New Modal Component

Hello again,

Yesterday we shipped Elements 0.7.1, and today we’re demoing a new component that has been on the request list for quite a while. It’s the humble Modal.

As with all our components, we’ve made sure it’s really flexible and able to cover a lot of use cases. Watch today’s video to learn more.

The Modal Component will be added to a future build of Elements, very soon!

Get Elements for macOS

Elements is now available in Early Access. You can visit the elementsapp.io website to purchase a license today.

Thanks for Your Feedback

As always, keep the feedback coming. Your input has made all the difference so far.

Thank you!

See you soon,
Dan & Team Realmac.

@dan Is the dropdown component I spied in the background mean that dropdown menus are on the horizon?? :partying_face:

Modal component looks great, and I even have a place for it in my website!!

Maybe… :wink:

Awesome!

I like function of Modal Component we can use it for many purposes, and looks great :clap:t2:

So I love this! Perfect for navigation.

Can I enter the built in navigation to this, I suspect yes. Can I allow it to scroll overflow?

This may be a great way to build the vertical navigation that I have been waiting for!

Yes to all of the above, and that’s… The Power of Elements™ :laughing:

Vertical menu?

oh sorry, not just yet with the built in navigation component. You could “easily” build a custom component to list out all your pages…

You could build it manually, like this example, but it’s not ideal for a large site.

We probably need to build another navigation component, one that can be used vertically…

Yes please. I pretty much need this!

@dan

Way back in the day—think RapidWeaver versions 1, 2, and 3—the navigation had the ability to hide all tier 3 pages that weren’t related to the currently active tier 2 page. This wasn’t just CSS wizardry; it was hardcoded into the HTML. The advantage of this approach was that search engines only saw the silo of links attached to the active tier 2 page. Ideally, navigation in Elements would function the same way.

This looks really great.

Early in the video you mention creating a gallery, but you didn’t show that. Can I create a modal like the left-hand dog photo that has pulls up a whole gallery of photos? With clickable next/prev. symbols? With automatic scolling? Or is there another way (element) to set that up that I missed in all the videos?

Thanks!

Yes, the included Gallery Component already does that!

Thanks! I was sure it had to be there already :grinning_face:.

Yes, I have a large website waiting on a vertical navigation component.

@dan This new component looks really good and I certainly have a need for it.

There was one feature that I thought was missing from this component. That was the ability to display the modal on a timer. So it would popup and if not closed by the user would stay on screen for a certain period of time before closing.

I have modals I use on my Classic sites that depend on this feature of a modal.

Maybe there is some other way of doing this in Elements, but I have not discovered it yet.

Great to see more components showing up, Elements is getting more and more well rounded by the day.

How is this version of the modal different from the one that was available in those very first builds of elements?

I’d have to go back and take a look at the first modal we built (it’s been a while!), but this new modal takes a much more flexible, composable approach.

As with all our built-in components, we’ve aimed to make it as versatile as possible. As you saw in Dan’s video, anythingcan be used as the modal trigger (previously it was a hardcoded button), and you can add any component as the modal itself.

This gives you tons of flexibility—whether you’re building a simple image popup, a slide-in panel, or something more complex :slight_smile:

Oh good! That is a feature that has worked best with a lot of flexibility.

Brilliant, young Dan! :blush: I am a rabid weaver (get it?) of modals on my sites. Use many of them and this surpasses the RW Classic (stacks-based) implementations I’ve used. Can’t wait to try it out.

All I need now is a Tabs component and I shall be in Nirvana.

Way to go, you + team!

Awww, thanks! I’m glad to hear you like it!

It’s on the list :wink: