Skip to content

@eodash/eodash / Configuration / FunctionalWidget

Interface: FunctionalWidget

Properties

defineWidget

Provides a functional definition of widgets, gets triggered whenever a STAC object is selected, and only renders the returned configuration if the id doesn't match the currently rendered id

ts
defineWidget: (selectedSTAC, selectedCompareSTAC?) =>
  | false
  | StaticWidget
  | null
  | undefined;

Parameters

selectedSTAC

StacCollection | null

Currently selected STAC object

selectedCompareSTAC?

StacCollection | null

Returns

| false | StaticWidget | null | undefined