如何在网格中访问折叠工具的ID? [英] How to access the ID of a collapseTool in a grid?

查看:108
本文介绍了如何在网格中访问折叠工具的ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在网格中访问 collapseTool 的ID,但是我没有任何运气.这是当我只是简单地控制网格时的控制台图片.

I'm trying to access the ID of the collapseTool in a grid, but I'm not having any luck. Here's a pic of my console when I simply console out the grid.

console.log(grid);

,我想获取ID tool-1782

我尝试过:

 console.log(grid.collapseTool) 

但可以打印

未定义

我正在使用内部带有网格的手风琴,我想获取每个折叠按钮的ID.

I'm working with an accordion that has grids inside of it, and I would like to get the id of each collapse button.

示例:

 1) Id of first button: tool-1782
 2) Id of second button: tool-1783
 3) Id of third button: tool-1784
 4) Id of fourth button: tool-1785
 ......
 ....

这是我的手风琴的照片.

有人知道如何在网格中访问crashTool的ID吗?预先谢谢你!

Does anyone know how to access the id of collapseTool in a grid? Thank you in advance!

推荐答案

我用过相同的console.log(grid.collapseTool.getId()),它工作正常.

您可以在我的 sencha小提琴演示中查看

You check here on my sencha fiddle demo.

在这里,您还可以检查要在extjs中引用一个可乐定?.

Here, Also you can check how-to-have-reference-to-an-accordin-in-extjs?.

这篇关于如何在网格中访问折叠工具的ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆