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]