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

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.

1 Like

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

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

Awesome, this is very helpful.