Jetpack/SDK/Writing Documentation: Difference between revisions

Jump to navigation Jump to search
Line 61: Line 61:
==== Component Scope ====
==== Component Scope ====


Certain components are allowed to contain other components: <code>class</code> and <code>property</code> components may contain <code>constructor</code>, <code>method</code>, <code>property</code>, and <code>event</code> components. So an object called <code>panel</code> that emits an event called <code>show</code> would be documented like this:
Certain components are allowed to contain other components:  
 
* <code>class</code> components may contain <code>constructor</code>, <code>method</code>, <code>property</code>, and <code>event</code> components.
* <code>property</code> components may contain <code>method</code>, <code>property</code>, and <code>event</code> components.
 
So an object called <code>panel</code> that emits an event called <code>show</code> would be documented like this:


  <api name="panel">
  <api name="panel">
canmove, Confirmed users
737

edits

Navigation menu