<pre></pre> Im using next js 15 with app router and facing issued, the toogle sidebar not working and the expands menu showing twice icons
here is the code for initiate metronic template
export default function GlobalInit() {
const pathname = usePathname();
useEffect(() => {
if (typeof window !== "undefined") {
window.KTUtils = KTUtils;
window.KTDom = KTDom;
window.KTEventHandler = KTEventHandler;
window.KTMenu = KTMenu;
window.KTDropdown = KTDropdown;
window.KTModal = KTModal;
window.KTDrawer = KTDrawer;
window.KTCollapse = KTCollapse;
window.KTDismiss = KTDismiss;
window.KTTabs = KTTabs;
window.KTAccordion = KTAccordion;
window.KTScrollspy = KTScrollspy;
window.KTScrollable = KTScrollable;
window.KTScrollto = KTScrollto;
window.KTSticky = KTSticky;
window.KTReparent = KTReparent;
window.KTToggle = KTToggle;
window.KTTooltip = KTTooltip;
window.KTStepper = KTStepper;
window.KTTheme = KTTheme;
window.KTImageInput = KTImageInput;
window.KTTogglePassword = KTTogglePassword;
window.KTDataTable = KTDataTable;
window.KTComponents = KTComponents;
KTComponent.init();
KTLayout.init();
}
}, [pathname]);
return <></>;
}
Hi,
You are referring to the guide for using HTML/JS features as a hybrid next.js app.
Have you tried the starter kit for Next.js:
https://github.com/keenthemes/metronic-tailwind-html-integration
All you need is to set up the starter kit of next.js demo1 for v9 tailwind, drop the v9 tailwind js/css assets into your next.js ap,p, and run it.
Suppose you need a fully working next.js app, with next.js API, Prisma, and PostgreSQL integration. please let us know, we are going to release a full stack app boilerplate in 1-2 weeks. We will notify you. This new product uses all Metronic design systems but is optimized for Next.js and a fully functional product-ready app with working cruds.
Regards,
Sean
Cant wait for this. To apply in my project.