Custom symbols in collections

Document created by K.DAVE on Nov 15, 2018
Version 1Show Document
  • View in full screen mode

Is it possible to use custom symbols in collections? Is there something that must be done in order to allow custom symbols to work with collections? I have some simple symbols (simple in that they only utilise the native data calls, no webapi calls) If not today, is this something that will come in the future?

 

Hi Keilan,

 

According to our documentation, if you add the "supportsCollections: true" parameter in the definition of the custom symbol's JS file this should enable the symbol to used in collections, such as in the example definition below:

 

var definition = {
typeName: "collectionproof",
visObjectType: symbolVis,
datasourceBehavior: PV.Extensibility.Enums.DatasourceBehaviors.Single,
supportsCollections: true,
getDefaultConfig: function(){
return {
DataShape: "Timeseries",
Height: 150,
Width: 150
}
}
}

 

Cheers,

Rob

 

Thanks for the quick answer Rob, brilliant!

 

Yes documentation...always the last place I look....

 

This document was generated from the following discussion: Custom symbols in collections

Attachments

    Outcomes