docs icon indicating copy to clipboard operation
docs copied to clipboard

Custom Field Types setZone for getAssets

Open dantleech opened this issue 9 years ago • 0 comments

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
        ];

dantleech avatar Jul 14 '16 14:07 dantleech