Creates native Cocoa Touch slider. Control is created on the top layer of page, so if there are html elements on given coordinates control will overlap them.
init(x, y, width, callback)
initializes slider control at given coordinates with a set width and a callback (name of the function as string) to be called when slider value is changed. Callback format should be functionName(value, controlID). "value" will be between 0 and 100 and controlID is an ID of the control (in case you have one callback for many controls).
show()
shows initialized slider, does nothing if already shown.
hide()
hides initialized slider, does nothing if already hidden.
setValue(value)
set's current value [0..100]
Initialize a slider
var slider = new NKSlider();
slider.init(20, 325, 280, "myFunction");
slider.setValue(20);
slider.show();
See the example source code for a more detailed implementation.