Advertisement
Guest User

highcharts.runtime.js

a guest
Nov 27th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TW.Runtime.Widgets.helloWorld = function () {
  2.  var valueElem;
  3.  
  4.  this.renderHtml = function () {
  5.  return "<div class=\"widget-content widget-helloWorld\">" +
  6.  "<span class=\"DisplayText\">" + this.getProperty("DisplayText") + "</span>" +
  7.  "</div>";
  8.  };
  9.  
  10.  this.afterRender = function () {
  11.  valueElem = this.jqElement.find(".DisplayText");
  12.  valueElem.text(this.getProperty("DisplayText"));
  13.  };
  14.  
  15.  this.updateProperty = function (updatePropertyInfo) {
  16.  if (updatePropertyInfo.TargetProperty === "DisplayText") {
  17.  valueElem.text(updatePropertyInfo.SinglePropertyValue);
  18.  this.setProperty("DisplayText", updatePropertyInfo.SinglePropertyValue);
  19.  }
  20.  };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement