Assets.common Class
Access point: ac.assets.* Provides methods for adding HTML assets to a page.
Item Index
Methods
addAssets
()
addBlob
(
-
content -
location
Method for adding a Blob of data to the page. This can be used for adding custom "script" or "style" blocks.
Parameters:
-
contentStringA string of data.
-
locationStringEither "top" or "bottom".
addCss
(
-
link -
location
Method for adding a CSS file to the page.
Parameters:
-
linkStringA URL (./local.css converts to /static/mojit_type/assets/local.css).
-
locationStringEither "top" or "bottom".
addJs
(
-
link -
location
Method for adding a JS file to the page.
Parameters:
-
linkStringA URL (./local.css converts to /static/mojit_type/assets/local.css).
-
locationStringEither "top" or "bottom".
