Templates 如何从Extjs模板获取值
我正在ExtjsGrid中使用一个行扩展器。RowExpander的模板具有用于从用户获取值的文本区域 下面是我的代码。我如何读取值Templates 如何从Extjs模板获取值,templates,extjs,textarea,Templates,Extjs,Textarea,我正在ExtjsGrid中使用一个行扩展器。RowExpander的模板具有用于从用户获取值的文本区域 下面是我的代码。我如何读取值 var expander = new Ext.ux.grid.RowExpander({ tpl : new Ext.Template( '<p><b></b><div class="abc"> <input type="textarea" id = "hans_" name ="han
var expander = new Ext.ux.grid.RowExpander({
tpl : new Ext.Template(
'<p><b></b><div class="abc"> <input type="textarea" id = "hans_" name ="hans_" value = "{comment}"</ div></p><p></p><p>{promptMsg}</p>'
),
listeners:
{
expand: function(ex, record, body, rowIndex){
},
collapse: function(ex, record, body, rowIndex){
}
}
});
var expander=new Ext.ux.grid.RowExpander({
第三方物流:新的外部模板(
“解决了
下面是解决方案
为模板的textarea指定动态名称
'<p><b></b><div> <textarea rows="2" cols="100" id = "{qnNum}" name ="{qnNum}" > {comment} </textarea><b></b></ div></p><p></p>'
解决了…它可能会帮助其他人
document.getElementById(record.data.qnNum);