Nav/Schema

Help

FAQ

Quick answers to the questions we get most often.

What is nav-schema?01

nav-schema is a TypeScript library for generating and mounting sidebar and mega menu navigation from typed schema objects.

Does nav-schema replace tiny-engine-core?02

No. nav-schema uses tiny-engine-core internally for live DOM mounting. Your app imports nav-schema helpers instead of registering capsules directly.

Can I render navigation without mounting it?03

Yes. renderSidebarHtml() and renderMegaMenuHtml() return HTML strings for static output, SSR, or pre-rendered pages.

How does active link matching work?04

Sidebar links compare against currentUrl or window.location, including pathname, optional query, and hash-route values.

Can sidebar parents open automatically?05

Use autoExpandActiveChild with expandMultiple set to false to open the branch that contains the current page.

Page 1 of 2