-
Notifications
You must be signed in to change notification settings - Fork 0
API Services IScriptService
Christophe SAUVEUR edited this page Sep 29, 2024
·
1 revision
interface IScriptService
Script service interface
Since 2.0
public abstract function add(string $url, bool $inline = false, bool $prepend = false, string $type = 'text/javascript'): void
Adds a script to the document
Since 2.0
Name | Type | Description |
---|---|---|
$url |
string |
Script URL or path for inline scripts |
$inline |
string |
If set, the script is included inline in the response (Defaults to false). |
$prepend |
string |
If set, the script is added before any other (Defaults to false). |
$type |
string |
Script type (Defaults to text/javascript). |
Getting Started | Framework Reference | API Reference | MFX is released under the MIT license