5 Replies Latest reply on Jul 4, 2018 2:34 AM by MikeRay

    Click Event for Button - PI Vision Extensibility

    MikeRay

      Hi All,

      I am struggling to get a click event firing from a button I have in my symbol config pane.

       

      I have this as part of my config pane:

       

      <div class="c-side-pane t-toolbar">

      <span style="color:#fff; margin-left:10px;">test</span>

      </div>

      <input id="myID" type="button" value="Remove" ng-click="click()" />

       

      And this as part of my implementation

       

      symbolVis.prototype.init = function(scope, elem) {

          scope.click = function(){

               console.log('button clicked')  ;

          }

      ...

       

      But I can't get the event to fire on click of the button... am I doing this the right way?

       

      Any guidance would be gratefully received.

       

      Thanks,

       

      Mike.