Hi, Anybody got an idea on how to add a hyperlink as custom symbol in PI Vision.
I was manged to add a symbol by adding below js file in to ext Folder.
(function (PV) {
function symbolVis() {}
PV.deriveVisualizationFromBase(symbolVis);
var definition = {
typeName: 'Google',
datasourceBehavior: PV.Extensibility.Enums.DatasourceBehaviors.Single,
visObjectType: symbolVis,
getDefaultConfig: function() {
return { DataShape: 'Value',Height: 150, Width: 150 };
}
};
symbolVis.prototype.init = function () { }
PV.symbolCatalog.register(definition);
})(window.PIVisualization);
But on hover of the symbol, I need to add a tool tip, google.com and while clicking on the tool tip it should be navigate to google.com
Just add any html element and attach an angular onClick Handler like this:
<button ng-click="openLink()">send me to google</button>
Then, in your .js in prototype.init, add the following function: