Menu icon Foundation
add elements to Magellan with JS on the fly

Quick question for the forum.

Is is possible to add elements to Magellan with JS on the fly.

It seems to add the ::before and ::after but it never makes the active on scroll.

Any ideas?

Thanks

Magellan

Quick question for the forum.

Is is possible to add elements to Magellan with JS on the fly.

It seems to add the ::before and ::after but it never makes the active on scroll.

Any ideas?

Thanks

Karl Ward over 5 years ago

How exactly are you adding them? Just by adding the data-magellan-expedition attribute? I assume you would need to also trigger the following:

 $(document).foundation('magellan', 'reflow');

Michael Bender over 5 years ago

Thank you so much Karl!

That worked like a charm.

So one quick question. How would I know that. I don't see it in the doc section. I glanced through the magellan code but its a bit compact and quite undocumented.

Any cool tips on where to find more doc's. Javascript usage, Mixins that have seemed to leave us when we went to 5. Maybe a great primmer on using the grid in practice.

I have loved my foundation experience thus far and has made me work with other technology that I might have otherwise missed. But the docs seem to leave off before they get to the deep dark.

Anyway thanks again,

Michael

Karl Ward over 5 years ago

For the reflow, I found it in the documentation for interchange and just guessed other javascript components used the same command. I would also love to see improved documentation on the Foundation javascript modules. Zurb?