useDateGallery<T>

HOOK

A hook which returns a DateGallery from @uiloos/core which is configured by the config parameter.

What the hook does is register itself to the DateGallery for changes, when a change is detected it makes sure that the component using the hook is re-rendered.

Since 1.6.0

Signature

useDateGallery( ): DateGallery<T>

Parameters

config: DateGalleryConfig<T>

The initial configuration of the DateGallery.

Returns

An instance of the DateGallery from @uiloos/core