docs
docs copied to clipboard
Custom Field Types setZone for getAssets
Following the documentation here instructions are given for registering custom assets.
However, this will not work unless the assets are assigned to a zone:
$asset = new JavaScript('web/jquery.uix.multiselect.min.js');
$asset->setZone(Zone::BACKEND);
return [
$asset
];