This may be a bit lame but here we go!
This was taken from a previous example found on the CrossUI site. I tweaked it a bit.
Instructions on how to used it is exampled in the demo. If you have any thoughts about it PLEASE share them with me.
The .js file is there if you want it. But in staying in true form with the demo it must be imported from a json string.
There is a link to CrossUI on line. If you paste the class into the on line demo it works.
So here is where you can find it.
http://mobile1.onlinewebshop.net/sod/vb1/
Enjoy
Clark