Skip to content

@eodash/eodash / Configuration / Widget

Type Alias: Widget

Widgets can be defined in 2 forms:

  1. StaticWidget : This is defined as an object once, and is considered the default form.
  2. FunctionalWidget : a special form which contains the `defineWidget` function that runs when `loadSelectedSTAC` function is triggered, and returns a value of a Static Widget or null or undefined.
ts
type Widget = StaticWidget | FunctionalWidget;