This repository was archived by the owner on Apr 8, 2026. It is now read-only.
Repository navigation
v5.3.2 — Layout View Switching Fix
Fixed
layout.showView()now togglesdata-viewchildren inside#mn-slot-center— previously only updated internal state without switching the visible view panel. Adddata-view="<viewId>"to your center slot children.syncDOM()uses live DOM queries — slot refs are no longer cached atcreateLayout()time. Fixes stale ref bug when slots are added to the DOM after initialization (common in framework consumers).toggleStrip()/toggleLeft()/toggleRight()now reliably manipulate the DOM on all browsers including Safari/WebKit.
Consumer Pattern
<div id="mn-grid">
<div id="mn-slot-strip">sidebar</div>
<div id="mn-slot-center">
<div data-view="dashboard">Dashboard</div>
<div data-view="settings" hidden>Settings</div>
</div>
</div>const layout = Maranello.createLayout(grid);
layout.register('dashboard', { label: 'Dashboard' });
layout.register('settings', { label: 'Settings', fullpage: true });
layout.showView('dashboard'); // shows matching data-view, hides othersFull changelog: CHANGELOG.md