Package | Description |
---|---|
org.pepstock.charba.client.adapters |
Contains all classes to interact with date adapters implemented by CHART.JS to be abstract from date time java script library to use.
|
org.pepstock.charba.client.resources |
Contains the fundamental java script resources to inject in order to use Charba.
It provides all implementations to inject embedded resources for all 3 date adapters, available by CHART.JS (MOMENT, LUXON and DATE.FNS). |
Modifier and Type | Class and Description |
---|---|
class |
DatefnsModule
Date adapter module for DATE-FNS.
date-fns provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates. |
class |
LuxonModule
Date adapter module for LUXON.
luxon provides a powerful, modern, and friendly wrapper for javascript dates and times. LUXON chart.js adapter has implemented the formats by Intl.DateTimeFormat instead of strings. To implement Intl.DateTimeFormat is quite complex and maybe useless. Therefore for LUXON, we use a predefined formats as string but equals to defaults of the adapter. |
class |
MomentModule
Date adapter module for MOMENT.
moment to parse, validate, manipulate, and display dates and times in JavaScript. |
Modifier and Type | Method and Description |
---|---|
AbstractModule |
AbstractResources.getModule()
Returns the date adapter module.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
ResourcesType.equalsTo(AbstractModule module)
Returns
true if the date adapter module is the same of the injected one. |
Constructor and Description |
---|
AbstractDeferredResources(AbstractModule module)
Creates a deferred resource object by passed module, which represents the date adapter and library, as argument.
|