Jetpack/SDK/Writing Documentation: Difference between revisions

Line 187: Line 187:
You can nest <code>method</code>, <code>property</code>, or <code>event</code> components inside <code>property</code> components.
You can nest <code>method</code>, <code>property</code>, or <code>event</code> components inside <code>property</code> components.


=== <code>event</code> components ===
=== <code>event</code> ===


If the code emits events you use the <code>event</code> component to document them. The only extra bit of syntax events need is to define the arguments that will be passed into any listener functions, and this is done using a line which:
If the code emits events you use the <code>event</code> component to document them. The only extra bit of syntax events need is to define the arguments that will be passed into any listener functions, and this is done using a line which:
canmove, Confirmed users
737

edits