diff --git a/src/website/src/pages/ec/components/navigation/mega-menu/docs/api.mdx b/src/website/src/pages/ec/components/navigation/mega-menu/docs/api.mdx index a6c678c8fb8..71162ac8a54 100644 --- a/src/website/src/pages/ec/components/navigation/mega-menu/docs/api.mdx +++ b/src/website/src/pages/ec/components/navigation/mega-menu/docs/api.mdx @@ -28,7 +28,7 @@ Given you have 1 element with an attribute `data-ecl-mega-menu` on the page: ```js var elt = document.querySelector('[data-ecl-mega-menu]'); -var menu = new ECL.megaMenu(elt); +var menu = new ECL.MegaMenu(elt); menu.init(); ``` diff --git a/src/website/src/pages/ec/components/navigation/menu/docs/api.mdx b/src/website/src/pages/ec/components/navigation/menu/docs/api.mdx index bfad02c16d4..3eff5f33b42 100644 --- a/src/website/src/pages/ec/components/navigation/menu/docs/api.mdx +++ b/src/website/src/pages/ec/components/navigation/menu/docs/api.mdx @@ -35,7 +35,7 @@ Given you have 1 element with an attribute `data-ecl-menu` on the page: ```js var elt = document.querySelector('[data-ecl-menu]'); -var menu = new ECL.menu(elt); +var menu = new ECL.Menu(elt); menu.init(); ``` diff --git a/src/website/src/pages/eu/components/navigation/mega-menu/docs/api.mdx b/src/website/src/pages/eu/components/navigation/mega-menu/docs/api.mdx index a6c678c8fb8..71162ac8a54 100644 --- a/src/website/src/pages/eu/components/navigation/mega-menu/docs/api.mdx +++ b/src/website/src/pages/eu/components/navigation/mega-menu/docs/api.mdx @@ -28,7 +28,7 @@ Given you have 1 element with an attribute `data-ecl-mega-menu` on the page: ```js var elt = document.querySelector('[data-ecl-mega-menu]'); -var menu = new ECL.megaMenu(elt); +var menu = new ECL.MegaMenu(elt); menu.init(); ``` diff --git a/src/website/src/pages/eu/components/navigation/menu/docs/api.mdx b/src/website/src/pages/eu/components/navigation/menu/docs/api.mdx index d3abf5bb173..fe1d6b0bc1e 100644 --- a/src/website/src/pages/eu/components/navigation/menu/docs/api.mdx +++ b/src/website/src/pages/eu/components/navigation/menu/docs/api.mdx @@ -28,7 +28,7 @@ Given you have 1 element with an attribute `data-ecl-menu` on the page: ```js var elt = document.querySelector('[data-ecl-menu]'); -var menu = new ECL.menu(elt); +var menu = new ECL.Menu(elt); menu.init(); ```