Class JQueryResources
java.lang.Object
de.knightsoftnet.mtwidgets.client.ui.widget.resourceloader.JQueryResources
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheck if script is already in the header.static booleancheck if script is available and initialized.static voidwhenReady(elemental2.dom.EventListener function) async load of resources.
-
Constructor Details
-
JQueryResources
public JQueryResources()
-
-
Method Details
-
whenReady
public static void whenReady(elemental2.dom.EventListener function) async load of resources.- Parameters:
function- function to call on load
-
isInitialized
public static boolean isInitialized()check if script is available and initialized.- Returns:
- true if it exists
-
isInHeader
public static boolean isInHeader()check if script is already in the header.- Returns:
- true if it exists
-