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.

7 Likes

@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!!

1 Like

Maybe… :wink:

Awesome!

1 Like

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

2 Likes

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!

1 Like

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

Vertical menu?

1 Like

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…

1 Like

Yes please. I pretty much need this!

1 Like

@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!

1 Like

Yes, the included Gallery Component already does that!

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

1 Like

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

1 Like

@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.

1 Like

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:

1 Like

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

2 Likes

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: