Explorer API
Contents
Usage
Add the following into your build file:
build.gradle
dependencies {
include 'com.enonic.lib:lib-explorer:3.20.1'
// Needed by lib-explorer (or lib-util)?
include "com.enonic.xp:lib-cluster:${xpVersion}"
include "com.enonic.xp:lib-context:${xpVersion}"
include "com.enonic.xp:lib-event:${xpVersion}"
include "com.enonic.xp:lib-i18n:${xpVersion}"
include "com.enonic.xp:lib-mail:${xpVersion}"
include "com.enonic.xp:lib-node:${xpVersion}"
include "com.enonic.xp:lib-portal:${xpVersion}"
include "com.enonic.xp:lib-repo:${xpVersion}"
}
In your controller, add a require statement:
import {functionName} from '/lib/explorer';