--- layout: "v2_fluid/docs_base" version: "<$ version.current.name $>" versionHref: "<$ version.current.href $>" path: "<$ doc.path $>" category: api id: "{{<$ doc.name $> | slugify}}" title: "<@ if doc.docType == "directive" @><$ doc.name | dashCase $><@ else @><$ doc.name $><@ endif @>" header_sub_title: "<$ doc.docType | capital $> in module <$ doc.module $>" doc: "<$ doc.name $>" docType: "<$ doc.docType $>" --- <@ macro paramList(paramData) -@> <@- if paramData -@>( <@- for param in paramData -@> <$ param | escape $><@ if not loop.last @>, <@ endif @> <@- endfor @>) <@- endif @> <@- endmacro -@> <@ macro githubViewLink(doc) -@> <$ doc.fileInfo.relativePath $> (line <$ doc.location.start.line+1 $>) <@- endmacro -@> <@ macro paramTable(params, isDirective) @> <@ for param in params @> <@ endfor @>
<@ if isDirective @>Attr<@ else @>Param<@ endif @> Type Details
<$ param.name $> <@ if param.alias @>| <$ param.alias $><@ endif @> <@ if param.type.optional @>
(optional)
<@ endif @>
<$ typeList(param.typeList) $> <$ param.description | marked $> <@ if param.default @>

(default: <$ param.default $>)

<@ endif @>
<@ endmacro @> <@- macro functionSyntax(fn) @> <@- set sep = joiner(', ') -@> <$ fn.name $>(<@- for param in fn.params @><$ sep() $> <@- if param.type.optional @>[<@ endif -@> <$ param.name $> <@- if param.type.optional @>]<@ endif -@> <@ endfor @>)<@ if fn.alias @>(alias: <$ fn.alias $>)<@ endif @> <@ endmacro -@> <@ macro typeList(types) -@> <@ set separator = joiner("|") @> <@ for type in types @><$ separator() $><$ type | code $><@ endfor @> <@- endmacro -@> <@- macro typeInfo(fn) -@> <$ typeList(fn.typeList) $> <$ fn.description $> <@- endmacro -@> <@ block body @>
View Source   Improve this doc
<@ block content @> <@ block header @>

<@ if doc.docType == "directive" @> <$ doc.name | dashCase $> <@ else @> <$ doc.name $> <@ endif @> <@ if doc.parent @>
Child of <$ doc.parent $> <@ endif @> <@ if doc.delegate @>
Delegate: <$ doc.delegate $> <@ endif @>

<@ if doc.codepen @> {% include codepen.html id="<$ doc.codepen $>" %} <@ endif @> <@ endblock @> <@ block description @> <$ doc.description | marked $> <@ endblock @>

<$ doc.name $> <$ doc.docType $>

exported from {@link <$ doc.moduleDoc.id $> <$doc.moduleDoc.id $> }
defined in <$ githubViewLink(doc) $>

<@- if doc.decorators @>

Annotations

<@- for decorator in doc.decorators @>

@<$ decorator.name $><$ paramList(decorator.arguments) $>

<@ endfor @> <@ endif -@> <@- if doc.members and doc.members.length @> ## Members <@- for method in doc.members @>

<$ functionSyntax(method) $>

<$ method.description $> <@ if method.params @> <$ paramTable(method.params) $> <@ endif @> <@ if method.this @> #### Method's `this` <$ method.this $> <@ endif @> <@ if method.returns @> * Returns: <$ typeInfo(method.returns) $> <@ endif @> <@ endfor -@> <@- endif -@> <@ endblock @> <@ endblock @>