Are there any examples on using DocumentJS with components, viewModels, and the define plugin?


#1

I’'ve been playing around with DocumentJS and using it to document components.

I’ve figured that you can use the @prototype tag for methods on the component viewModel, but I’m not really sure of the best way to document properties in the define object, since I want them to be visibly separated from the prototype section etc.

In addition, some of the components might emit events, so it would be nice to group those also.


#2

Yes, checkout bitballs: https://donejs.com/bitballs.html

It’s pretty fully documented: http://donejs.github.io/bitballs/docs/index.html


#3

Awesome, this is very helpful.