Hi,
I am new to this slider, I was using this in one project.
case is :- I have an array of object like below :-
slideItems: [
{
customer: {"int": "int", "dom": "dom"},
imgUrl: "imgurl1",
content: "content1"
},
{
customer: {"int": "int", "dom": "dom"},
imgUrl: "imgurl2",
content: "content2"
},
{
customer: {"int": "", "dom": "dom"},
imgUrl: "imgurl3",
content: "content3"
},
{
customer: {"int": "", "dom": "dom"},
imgUrl: "imgurl4",
content: "content4"
}
]
So here, total slides are 4, and on the basis of customer type I am filtering, last two slides only, by creating new array, and that filtered array with two slide object I am supplying to slider, it's displaying correctly, but when I am clicking on dot's navigation, first time slide is moving backward, then second time, it's working fine, moving forward only.
Here, if I didn't filter that array, and directly supply that array to slider, slides are moving forward only.
I didn't get that behavior, what is wrong with filtered array or what is the difference between filtered array and old array.
slide index are also correct, if in filtered array their are two slides, so index will be (0, 1) and if three slides then it will be, (0,1,2).
I am setting active index also correct, because it's working fine with old array, but not with filtered one. And both array don't have any difference, just slide object are less in filtered array in compare of old array.
I think their is an bug in this slider, with filtered array, please have a look.
And also their is also no direction property is their for slider to move slides accordingly, it's only for "auto play".
If someone not using "auto play" and want to move slides backward or forward explicitly, their should be a property to force the different behavior of slide's movement (backward and forward).