Home > @i2analyze/notebook-sdk > schema > IPropertyTypesEditor > addPropertyType
schema.IPropertyTypesEditor.addPropertyType() method
Creates a custom property type that is added to the chart schema on committal.
Signature:
addPropertyType(propertyTypeData: IPropertyTypeData, insertAfter?: IChartPropertyType | IPendingPropertyType | null): IPendingPropertyType;
Introduced: version 1.6
Parameters
Parameter | Type | Description |
---|---|---|
propertyTypeData | IPropertyTypeData | The data for creating the custom property type. |
insertAfter | IChartPropertyType | IPendingPropertyType | null | (Optional) The existing property type to insert the new property type after. If this is not provided, the new property type is added at the end of the list. If this is null, the new property type is added at the beginning of the list. |
Returns:
The new, pending property type.