JsFile
in package
JsFile is a descriptor for JavaScript files that are loaded as part of the Extension->js_files array. The `code` of `JsFile` is executed when the JsRuntime is initiated.
Table of Contents
Properties
Methods
- __construct() : mixed
Properties
$code
The code for the javascript file
public
string
$code
$filename
The filename for the JS file
public
string
$filename
Methods
__construct()
public
__construct(string $filename, string $code) : mixed
Parameters
- $filename : string
- $code : string