DowncastAttributeCreatorFunction
Parameters
attributeValue: unknownThe model attribute value to be converted to the view attribute element.
conversionApi: DowncastConversionApiThe conversion interface.
data: objectAdditional information about the change (same as for
attributeevent).Propertiesdata.attributeKey: stringAttribute key.
data.attributeNewValue: unknownNew attribute value.
data.attributeOldValue: unknownAttribute value before the change. This is
nullwhen selection attribute is converted.data.item: ModelItemChanged item or converted selection.
data.range: ModelRangeRange spanning over changed item or selection range.
Returns
DowncastAttributeDescriptor | nullA
{ key, value }object. Ifkeyis'class',valuecan be aStringor an array ofStrings. Ifkeyis'style',valueis an object with key-value pairs. In other cases,valueis aString.