Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TW.Runtime.Widgets.helloWorld = function () {
- var valueElem;
- this.renderHtml = function () {
- return "<div class=\"widget-content widget-helloWorld\">" +
- "<span class=\"DisplayText\">" + this.getProperty("DisplayText") + "</span>" +
- "</div>";
- };
- this.afterRender = function () {
- valueElem = this.jqElement.find(".DisplayText");
- valueElem.text(this.getProperty("DisplayText"));
- };
- this.updateProperty = function (updatePropertyInfo) {
- if (updatePropertyInfo.TargetProperty === "DisplayText") {
- valueElem.text(updatePropertyInfo.SinglePropertyValue);
- this.setProperty("DisplayText", updatePropertyInfo.SinglePropertyValue);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement