mwf.xdesktop.requireapp("process.xform", "$module", null, false);
/** @class table 表格组件。
* @o2cn 表格
* @example
* //可以在脚本中获取该组件
* //方法1:
* var table = this.form.get("fieldid"); //获取组件
* //方法2
* var table = this.target; //在组件本身的脚本中获取
* @extends mwf.xapplication.process.xform.$module
* @o2category formcomponents
* @o2range {process|cms|portal}
* @hideconstructor
*/
mwf.xapplication.process.xform.table = mwf.apptable = new class(
/** @lends mwf.xapplication.process.xform.table# */
{
extends: mwf.app$module,
_afterloaded: function(){
/**
* @summary table,dom对象
* @member {element} table
* @memberof mwf.xapplication.process.xform.table#
* @example
* //可以在脚本中获取该组件
* var table = this.form.get("fieldid").table; //获取组件对象
*/
if (!this.table) this.table = this.node.getelement("table");
//var tds = this.node.getelements("td");
var rows = this.table.rows;
for (var i=0; i