public final class DeferredCharba extends Object
Modifier and Type | Method and Description |
---|---|
static void |
enable(Runnable runnable)
Enables Charba in the application, injecting also the date time library.
Start an entry point as a runnable. This runnable instance must contains all calls to chart. This helps when the GWT application is leveraging on code splitting. |
static void |
enable(Runnable runnable,
boolean loadDateTimeLibrary)
Enables Charba in the application.
If the argument is set to false , the date time library is not injected.This runnable instance must contains all calls to chart. This helps when the GWT application is leveraging on code splitting. |
public static void enable(Runnable runnable)
runnable
- the entry point instance as runnablepublic static void enable(Runnable runnable, boolean loadDateTimeLibrary)
false
, the date time library is not injected.runnable
- the entry point instance as runnableloadDateTimeLibrary
- if false
, the date time library is not injected