Usage

Structr.includeJs(filename)

Description
Searches for a JavaScript library file and if found, inserts the content of this file into the current JavaScript context.
A file can be marked as JavaScript library in the property dialog of the file.

fig

Note

This function is only available in JavaScript contexts.

Example

${{
    Structr.includeJs("functions.js");

    includedFunction('test');
}}

Graph-Browser

About this article
Last change 2017-05-04
Topics