You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Show Contents List
You are here:

Define a Widget Method

All methods will have a corresponding JavaScript function with a matching number of parameters. Thus, the Insert method will have an Insert function. This example has two values passed in that are used to populate a table of data.
PROTOTYPE.Insert = function( Value, Caption )
{   
  var index = this.m_DataTable.addRow( [Caption, Value ] );
 
  this.DrawChart();
  return index;
}
 
[<span style="color: #0000ee"><span style="text-decoration: underline; ">Show Contents List</span></span>|../../index.htm#lansa/vlwebeng02_0135.htm]

  • No labels