This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 3 years, 2 months ago.

Refresh slimscroll on ajax-portlet load


  • janfrodeh
    Participant

    Member Reply #1280

    Is there a way to refresh the slimscroll after ajax load on a portlet that is using “data-url” and “data-load” without modifying the theme scripts?

    Currently I have added this to the successhandler in handlePortletTools in Metronic.js:

    Metronic.destroySlimScroll(“.ajax-portlet-scroller”);
    Metronic.initSlimScroll(“.ajax-portlet-scroller”);

    .. and added this class to the scroller-div.

    Sean
    Sean
    Keymaster

    Posts: 4526
    Support Staff Reply #1342

    Hi :),

    Yes, this would be a good workaround at the moment. We will consider exposing it as an API in a future releases.

    To stay updated please follow us on http://twitter.com/keenthemes 😉

    Thanks.

You must be logged in to reply to this topic.