[英]How can i reinitialize the dynamic flexslider on click event?
I want to refresh the flexslider on click event. 我想在单击事件时刷新flexslider。 Actually i add flexslider in bootstrap pop so i want to refresh the slider on click event.
实际上,我在bootstrap pop中添加了flexslider,所以我想在click事件上刷新滑块。 Problem is that when i refresh the slider then it does not showing, because slider loss the in line styles of li.
问题是,当我刷新滑块时它不会显示,因为滑块会丢失li的线条样式。 I debugged every thing is fine but in-line css are rendering when i refresh the slider.
我调试过一切都很好,但是刷新滑块时,嵌入式CSS正在呈现。
$(function() {
$(".sidebar-button").click(function(evt) {
$(".custom-popup-personalize").load(window.location + " .custom-popup-personalize");
})
});
I will really appreciate if someone give me solution of this problem. 如果有人给我解决这个问题的方法,我将不胜感激。
after read plugin doc , something like so maybe help you : 阅读插件文档后,类似的东西可能会帮助您:
$('myslider-inner-div').data('flexslider').setup();
OR 要么
trigger your function on tab show event : 在标签显示事件上触发您的功能:
$('#case-1').on('shown', function () {
$(window).trigger( 'resize' );
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.