Open-source by Keenthemes!Support our KtUI and ReUI open-source projects and help with growth.
Star on Github

Livewire 3 with Keen admin


Il y un problem quand travaille livewire 3 avec keen admin

malgre ajouter code suivante menu pas travaille pourqoi :

@script
<script type="text/javascript" >
document.addEventListener("livewire:navigated", function () {
KTApp.init();
KTMenu.createInstances();
KTMenu.initHandlers();
KTScrolltop.createInstances();
KTImageInput.init();
KTDrawer.createInstances();
KTScroll.createInstances();
KTSticky.createInstances();
KTToggle.createInstances();
KTDialer.createInstances();
KTPasswordMeter.createInstances();
KTAppSidebar.init();

})
</script>
@endscript


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi

Sorry for the delay.

You may also need to listen to livewire:updated or livewire:load. Try adding listeners for those as well:

@script
<script type="text/javascript">
["livewire:navigated", "livewire:updated", "livewire:load"].forEach(event => {
document.addEventListener(event, function () {
if (typeof KTMenu !== "undefined") {
KTMenu.createInstances();
KTMenu.initHandlers();
}
// ... repeat for other Keen Admin components ...
});
});
</script>
@endscript


If you try these steps and it still doesn’t work, please provide any errors from the browser console.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(