Blog

Knockout container slider

Hello Guys, today i am sharing a container slider for knockout,  the slider is very easy to implement, you just need to create a div like this:

</pre>
<div data-bind="SliderContainer:{width:700, height:480,indexField:Index}">
<div id="screen1">
screen1</div>
<div id="screen2">
screen2</div>
<div id="screen3">
screen3</div>
</div>
<pre>

This will create an slider with three screens (screen1,screen2 and screen3). The screen that is currently visible is defined by the indexField (in this case Index), so with this configuration you could easily do something like this:

Hope you like it =)

0


About the Author:

Im programmer working for an international company. I have programmed since i was 12 and i have done it professionally for 6 years. Programming for a company is fun and i have learned a lot of things but i have always been interested in running my own business so i decided to give it a shot doing what i do best, programming stuffs.

Add a Comment