Package su.onno.ui
Class UiProperties.Plugins
java.lang.Object
su.onno.ui.UiProperties.Plugins
- Enclosing class:
UiProperties
Custom widget plugins. A consumer authors a React widget (a
.tsx compiled by the
su.onno.widgets Gradle plugin into onno-plugins/<name>.js on the classpath);
the SPA loads every such module at boot and each self-registers its widget type via
window.onno.registerWidget. The scanned scripts (plus any extraUrls) are
advertised to the client as pluginScripts from GET /api/config and served
under {onno.ui.path}/plugins/**.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetEnabled(boolean enabled) voidsetExtraUrls(List<String> extraUrls) voidsetLocation(String location)
-
Constructor Details
-
Plugins
public Plugins()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getLocation
-
setLocation
-
getExtraUrls
-
setExtraUrls
-