Resolve a formatting infos for a column, which may be a combination of multiple fields.
the dataset fields referenced by a column.
context: {
// dataSourceId to react to special datasets
dataSourceId: string;
// method to check if a field is a domain value field.
isDomainValueField(fieldName: string): boolean;
// method to check if a formatter is available
hasFormatter(formatterId: string): boolean;
// method to lookup the default formatting info for a field
defaultFormat(field: DatasetField): FormattingInfo | undefined;
}
'hide'
if the column should complete be hiddenundefined
if this provider can not provide information,
this means the next provider is checked or the default format is applied
Extension point of the FormatterFacade. An FormattingInfoProvider is requested for each column and field combination. It provides metadata about how a column should be rendered. These metadata is attached to a column and used to pick the correct formatter.
NOTE: This interface is a proof of concept please provide feedback if you use it.
A FormatterInfoProvider needs to be registered as
provides: result-api.FormattingInfoProvider
.Example: CustomFormatting