Official Content

Warning: Since GeneXus 16, it is strongly recommended to create a User Control object instead of creating a Web User Control.

This document specifies how the User Control called Hello World must be displayed at runtime (js).

function HelloWorld()
{
 this.ContainerName;
 this.Width;
 this.Height;
 this.FontFace;
 this.FontColor;
 this.FontSize;

 this.show = function(data)
 {
  ///UserCodeRegionStart: show (do not remove this comment.)
  var buffer= '<font face="' + this.FontFace + '" color="' +  this.FontColor + '" size="' + this.FontSize + '">Hello World!!!</font>';   
  //document.getElementById(this.ContainerName).innerHTML = buffer.toString();   
  this.setHtml(buffer);   
  ///UserCodeRegionEnd: (do not remove this comment.)
 }
}










Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant