Skip to content

ghoshArnab/readme-toc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Core

The Core object provides access to methods that are available for use by Bridge layers that connect the Constellation Core to a UI Library implementation.

Table of contents

Redux

Error handling

Validations

Expression

Asset loader

Exposes APIs to load the script files and css files as of now.

AssetLoader class exposes following methods :

  • register
  • getLoader
  • getStaticServerUrl
  • initServer
  • loadAssets

By default, out in-built loader for js/css will be used. Custom loaders can be registered using viz. 'Font-loader'

PCore.getAssetLoader().register('font-loader',fontLoaderFn);

Custom loaders can be used in this way. Assets need to passed asset type and url.

PCore.getAssetLoader().getLoader('font-loader')('web-font','https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');

getStaticServerUrl Method is used to fetch static content url :

PCore.getAssetLoader().getStaticServerUrl();

initServer Method is sets the static content url :

PCore.getAssetLoader().initServer('http://localhost:1080/prweb/AppName/');

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published