Skip to content

enonic/lib-asset

Repository files navigation

Asset library

Documentation

Asset library usage guide

Development

Usage

Insert into build.gradle of your XP project, under dependencies, where <version> is the latest/requested version of this library - for example 1.0.0:

dependencies {
	include 'com.enonic.lib:lib-asset:<version>'
}

Import

In any XP controller, import the library:

JavaScript:

const libAsset = require('/lib/enonic/asset');

TypeScript:

import { assetUrl } from '/lib/enonic/asset';

Types

Types for Asset library on NPM

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors