ModuleJS::addComponent()

Add an optional component that can be used with this module

Usage

$moduleJS->addComponent(string $name, string $file);

Arguments

NameType(s)Description
$namestring
$filestring

Return value

$this

Object instance it was called from (method supports fluent interface).


ModuleJS methods and properties

API reference based on ProcessWire core version 3.0.251