mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2026-04-12 07:06:20 +07:00
31 lines
1.4 KiB
HTML
31 lines
1.4 KiB
HTML
[[% macro dataFunctions(dataType, funcName, returnType, description, funcArgs) %]]
|
|
<div class="dt-func-wrapper" >
|
|
<h3 class="dt-func-title-h3" id="[[dataType]]-[[ funcName ]]">
|
|
[[funcName]]([[% if funcArgs %]][[% for arg in funcArgs %]][[arg.argName]][[% if arg.optional %]]?[[% endif %]]:
|
|
[[arg.longName]][[ ", " if not loop.last ]][[% endfor %]][[% endif %]]):
|
|
[[returnType]]
|
|
<a class="dt-func-header-link" href="#[[dataType]]-[[ funcName ]]" title="Permanent link">#</a>
|
|
</h3>
|
|
<div class="dt-func-desc">
|
|
[[description]]
|
|
</div>
|
|
[[% if funcArgs %]]
|
|
<h4 class="dt-func-title-h4">Function parameters</h4>
|
|
[[% for arg in funcArgs %]]
|
|
<div class="dt-func-args">
|
|
<span class="dt-func-name" id="[[funcName]]-[[arg.argName]]">[[arg.argName]]</span><span class="dt-func-optional">[[% if arg.optional %]]Optional[[% else %]]Required[[% endif %]]</span><span class="dt-func-arg-type">[[ arg.type ]]</span><a class="dt-func-arg-name-anchor" href="#[[funcName]]-[[arg.argName]]"></a>
|
|
<p class="dt-func-args-p">[[arg.description]]</p>
|
|
<div class="dt-func-options">[[% if arg.options %]]
|
|
<p class="dt-func-args-p">Default: <code>[[ arg.default ]]</code></p>
|
|
<p class="dt-func-args-p">One of: [[% for option in arg.options %]]
|
|
<code>[[option]]</code>[[ "," if not loop.last ]]
|
|
[[% endfor %]]
|
|
</p>
|
|
[[% endif %]]</div>
|
|
</div>
|
|
[[% endfor %]]
|
|
[[% endif %]]
|
|
</div>
|
|
<hr class="dt-func-hr" />
|
|
[[% endmacro %]]
|