DWVv0.37.0

InfoData

Source: infoData.js:102

DICOM Header info data.


Constructor

new InfoData( app: App, dataId: string, configs: Record.<string, Array.<InfoDataItem>>, ): InfoData

Parameters

  • app (App) — The associated application.
  • dataId (string) — The associated data id.
  • configs (Record.<string, Array.<InfoDataItem>>) — The info data config.

Instance Methods

reset()

Reset the data.

addItemMeta(data: Record.<string, DataElement>)

Handle a new loaded item event.

Parameters

  • data (Record.<string, DataElement>) — The item meta data.

isListening(): boolean

Is this class listening to app events.

Returns

  • boolean — True is listening to app events.

addAppListeners()

Toggle info listeners.

removeAppListeners()

Toggle info listeners.

Instance Fields

onSliceChange

deprecated
infoData.js:228

Handle a changed slice event.

Since v0.37, please use onPositionChange.

Parameters

  • event (CustomEvent) — The slicechange event.

onPositionChange

Handle a changed position event: updates the tags on slice change and the position event items.

Parameters

  • event (CustomEvent) — The positionchange event.

Events

valuechange: CustomEvent

Value change event.

Properties

  • detail (object) — The event detail.
    • detail.data (Array.<InfoDataItem>) — The value of the info data.