Making your plugins options accessible through .data()

Making your plugins options accessible through .data()


Hello. I have spent the last few days writing my first plugin and I
got it all set up with the options I want and so on. However I have
not been able to find a guide on how to make my plugin options
available through the .data() expression that all the jQuery UI
plugins use. I found some release notes about it and I looked at the
code in the UI plugins but I didn't really understand it.
Is there an easy way of doing this and if so, how do I do it?
Kindly, Marcus.