cfx
Version:
programmatically use cfx with node.js
163 lines (146 loc) • 4.44 kB
Markdown
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
# Title #
Some text here
<api name="test">
This is a function which does nothing in particular.
{object}
firststring {string} First string
firsturl {url} First URL
argOne {string} This is the first argument.
[argTwo] {bool} This is the second argument.
[argThree=default] {uri}
This is the third and final argument. And this is
a test of the ability to do multiple lines of
text.
[options] Options Bag
[style] {string} Some style information.
[secondToLastOption=True] {bool} The last property.
[lastOption] {uri}
And this time we have
A multiline description
Written as haiku
</api>
This text appears between the API blocks.
<api name="append">
This is a list of options to specify modifications to your slideBar instance.
options
Pass in all of your options here.
[icon] {uri} The HREF of an icon to show as the method of accessing your features slideBar
[html] {string/xml}
The content of the feature, either as an HTML string,
or an E4X document fragment.
[url] {uri} The url to load into the content area of the feature
[width] {int} Width of the content area and the selected slide size
[persist] {bool}
Default slide behavior when being selected as follows:
If true: blah; If false: double blah.
[autoReload] {bool} Automatically reload content on select
[onClick] {function} Callback when the icon is clicked
[onSelect] {function} Callback when the feature is selected
[onReady] {function} Callback when featured is loaded
</api>
Wooo, more text.
<api name="cool-func.dot">
{string} A value telling you just how cool you are.
A boa-constructor!
This description can go on for a while, and can even contain
some **realy** fancy things. Like `code`, or even
~~~~{.javascript}
// Some code!
~~~~
howMuch {string} How much cool it is.
[double=true] {bool}
In case you just really need to double it.
[options] An object-bag of goodies.
callback {function} The callback
[random] {bool} Do something random?
[onemore] {bool} One more paramater
[options2]
This is a full description of something
that really sucks. Because I now have a multiline
description of this thingy.
monkey {string} You heard me right
[freak=true] {bool}
Yes, you are a freak.
</api>
<api name="random">
A function that returns a random integer between 0 and 10.
{int} The random number.
</api>
<api name="empty-class">
This class contains nothing.
</api>
<api name="only-one-ctor">
This class contains only one constructor.
<api name="one-constructor">
[options] An object-bag of goodies.
</api>
</api>
<api name="two-ctors">
This class contains two constructors.
<api name="one-constructor">
The first constructor.
[options] An object-bag of goodies.
</api>
<api name="another-constructor">
The second constructor.
[options] An object-bag of goodies.
</api>
</api>
<api name="ctor-and-method">
This class contains one constructor and one method.
<api name="one-constructor">
The first constructor.
[options] An object-bag of goodies.
</api>
<api name="a-method">
Does things.
[options] An argument.
</api>
</api>
<api name="ctor-method-prop-event">
This class contains one constructor, one method, one property and an event.
<api name="one-constructor">
The first constructor.
[options] An object-bag of goodies.
</api>
<api name="a-method">
Does things.
[options] An argument.
</api>
<api name="a-property">
{bool}
Represents stuff.
</api>
<api name="message">
Event emitted when the content script sends a message to the add-on.
{JSON}
The message itself as a JSON-serialized object.
</api>
</api>
<api name="open">
A module-level event called open.
{bool}
Yes, it's open.
</api>
Some more text here, at the end of the file.