ViewerDefinition / PartialViewerDefinition

Description

A ViewerDefinition is an interface that exposes properties to allow the definition of a viewer for the data. At this time, the DataGrid supports a viewer as a function or a constructor.

A ViewerDefinition can be provided through the ViewerDefinitionCollection.

Properties

Property

Type

Description

factory?

(context: ViewerContext) => ViewerElement

A function receiving a ViewerContext relative to the current data, which outputs a ViewerElement.

ctor?

new () => ViewerProvider

The constructor of an object, which outputs a ViewerProvider.

Remarks

A partial type/interface is an object in which properties are optional.