Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 在分组标题中插入一个按钮_Extjs - Fatal编程技术网

Extjs 在分组标题中插入一个按钮

Extjs 在分组标题中插入一个按钮,extjs,Extjs,任何帮助都是值得的。我想知道如何在分组标题中插入按钮而不使用“Ext.ux.grid.RowActions”。我需要的是如何通过渲染器或类似的方式将按钮放入。请帮助我解决这个问题。Ext JS使用其标记中的表来显示按钮。如果您想要一个Ext JS format按钮,而不仅仅是一个普通按钮,您可以在与分组网格关联的Ext.grid.GroupingView对象的groupTextTpl属性中包含相关标记,例如: ... groupTextTpl: 'Item: {gvalue} ({[values

任何帮助都是值得的。我想知道如何在分组标题中插入按钮而不使用“Ext.ux.grid.RowActions”。我需要的是如何通过渲染器或类似的方式将按钮放入。请帮助我解决这个问题。

Ext JS使用其标记中的表来显示按钮。如果您想要一个Ext JS format按钮,而不仅仅是一个普通按钮,您可以在与分组网格关联的Ext.grid.GroupingView对象的groupTextTpl属性中包含相关标记,例如:

...
groupTextTpl: 'Item: {gvalue} ({[values.rs.length]} Sub Item{[values.rs.length > 1 ? "s" : ""]}) <table cellspacing="0" class="x-btn  x-btn-text-icon" id="ext-comp-1005" style="width: auto;"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em unselectable="on" class=""><button type="button" id="ext-gen40" class=" x-btn-text my-action">My Action</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table>',
...
。。。
groupTextTpl:'项:{gvalue}({[values.rs.length]}子项{[values.rs.length>1?'s:“]})我的操作',
...

这将在分组标题中创建一个按钮

你在说什么?您可能想添加更多的标签。这似乎是关于ExtJS的问题,而不是关于PHP的问题。重新标记。请更具体一些。你到底想把按钮放在哪里?