{{#unless js}}
{{#heading 3}}no JavaScript reference available...{{/heading}}
{{/unless}} {{#if js}}
{{#heading 2}}JavaScript Reference{{/heading}} {{#if js.module}}{{#with js.module.[0]}}
{{#heading 3 'js-module'}}Initializing{{/heading}}

The file {{meta.filename}} must be included in your JavaScript to use this plugin, along with siteapp.core.js.{{#if requires}} This plugin also requires these utility libraries:{{/if}}

{{#if requires}}{{#each requires}} {{/each}}{{/if}}
{{/with}}{{/if}} {{#each js.class}}
{{#heading 3 'js-class'}}Siteapp.{{this.name}}{{/heading}} {{md this.description}}
{{writeJsConstructor this.name}}
{{#if this.fires}}

Fires these events: {{#each this.fires}} {{this}} {{/each}}

{{/if}} {{#if this.params}} {{#each this.params}} {{/each}}
NameTypeDescription
{{this.name}} {{this.type.names.[0]}} {{this.description}}
{{/if}}
{{/each}}
{{#if js.member}}
{{#heading 3 'js-options'}}Plugin Options{{/heading}}

Use these options to customize an instance of {{title}}. Plugin options can be set as individual data attributes, one combined data-options attribute, or as an object passed to the plugin's constructor. Learn more about how JavaScript plugins are initialized.

{{#each js.member}} {{/each}}
Name Type Default Description
{{formatJsOptionName this.name}} {{formatJsOptionTypes this.type}} {{formatJsOptionValue this.defaultvalue}} {{this.description}}
{{/if}}
{{#if js.event}}
{{#heading 3 'js-events'}}Events{{/heading}}

These events will fire from any element with a {{title}} plugin attached.

{{#each js.event}} {{/each}}
NameDescription
{{formatJsEventName this.name ../title}} {{this.description}}
{{/if}}
{{#if js.function}}
{{#heading 3 'js-functions'}}Methods{{/heading}} {{#each js.function}}
{{#heading 4 this.name}}{{this.name}}{{/heading}}
{{ writeJsFunction this }}
{{md this.description}} {{#if this.fires}}

Fires these events: {{#each this.fires}} {{this}} {{/each}}

{{/if}} {{#if this.params}} {{#each this.params}} {{/each}}
NameTypeDescription
{{this.name}} {{this.type.names.[0]}} {{this.description}}
{{/if}} {{#unless @last}}
{{/unless}}
{{/each}}
{{/if}}
{{/if}}