在观察窗口中搜索值(searching a value in watch window)
我在visual studio中调试c#
我在
watch window
添加了一个对象鉴于某些价值,有没有办法搜索哪个字段保存此值?
I'm debugging c# in visual studio
I added an object to the
watch window
Given some value, is there any way to search which field holds this value?
原文:https://stackoverflow.com/questions/10967196
最满意答案
我猜你以前用过jQuery了吗? 即使在ExtJS中这是可能的,但我不会在ExtJS中推荐它。
你应该使用
Ext.ComponentQuery.query('label[cls=YourClass]')
注意:我假设您通过cls属性应用了自定义类。
I guess you have used jQuery before? Even while this is possible in ExtJS it is not how I would recommend it in ExtJS.
You should use
Ext.ComponentQuery.query('label[cls=YourClass]')
Note: I assume that you applied the custom class via the cls property.
相关问答
更多-
这是Extjs论坛中提供的解决方案: http : //www.sencha.com/forum/showthread.php? 146160-HTMLEditor-strips-dtd-head-and-body-tags Ext.define('MyHTMLEditor', { extend:'Ext.form.HtmlEditor', alias: 'widget.myhtmleditor', tagsToComment: ['!DOCTYPE', 'html', 'head' ...
-
此代码在Extjs 4中工作 Ext.onReady(function() { var ResetLabel = new Ext.form.Label({ id:'ResetLabel', text: 'click it', renderTo : document.body }); alert(Ext.getCmp('ResetLabel').getEl()); ...
-
ExtJS6:如何将trepadist项目的leftpad margin设置为0(ExtJS6: How to set leftpad margin to 0 for treelist items)[2021-11-19]
如果你看一下treelist和treelistitem和抽象树列表项的代码一分钟,你会看到你可以使用未记录的配置属性indent:0或方法setIndent(0) 。 不知道为什么没有记录,可能他们打算在未来版本中更改命名。 我通过打开仪表板示例 ,扩展“页面”子树,然后将以下行放入浏览器控制台来测试它的工作情况: Ext.ComponentQuery.query("treelist")[0].setIndent(0); If you look at the code of treelist and tr ... -
我正在使用extjs 4.2.1,我正在做: label: { renderer: function(v) { if(v == 'Capitale-Nationale'){ this.font = "bold 12px Arial, Helvetica, sans-serif"; this.padding = 5; } else{ this.font = "12px Arial, Helvetica, sans-serif"; this.padding = 5; } ...
-
设置组合框宽度以自动调整它在ExtJS中的最长字段选项文本(set combo box width to auto fit it's longest field option text in ExtJS)[2022-06-22]
无需添加任何手动代码..不要给宽度.. 成长:真的, growToLongestValue:是的 在ExtJS 6中为我工作.. Ext.create('Ext.form.ComboBox', { fieldLabel : 'Field', store : ['a', 'b', 'c', 'Long long long long long long long long'], grow : true, growToLongestValue : true, ... -
我猜你以前用过jQuery了吗? 即使在ExtJS中这是可能的,但我不会在ExtJS中推荐它。 你应该使用Ext.ComponentQuery.query('label[cls=YourClass]') 注意:我假设您通过cls属性应用了自定义类。 I guess you have used jQuery before? Even while this is possible in ExtJS it is not how I would recommend it in ExtJS. You should u ...
-
我把所有东西放在另一个容器中,这个新容器正确地放置了所有东西 Ext.define('SystemMonitor.view.AboutWindow', { extend: 'Ext.window.Window', height: 420, width: 652, items: [ { xtype: 'container', items: [ { ...
-
标签非常适合这样做 ExtJS没有提供任何获取文本值的方法,因为我们可以直接读取它 Label is perfectly fine for doing this ExtJS doesn't provide any method of getting text value, cause we can read it directly
-
我很确定没有配置来做到这一点。 唯一合理的方法是摆弄CSS - 如何将复选框及其标签对齐一致的跨浏览器 +在当前版本(4.2.1。)中,有一个错误,它将整个标签文本包装在收音机下( 参见此处 )。 Im pretty sure there is no config to do this. Only reasonable way is by fiddling with CSS - How to align checkboxes and their labels consistently cross-brows ...
-
谢谢所有答案的人。 我想到了: label.setText('ABC
B'); 然后在标签配置中,您只需定义样式属性,如下所示: style: 'display:inline-block;text-align:center' Thanks for all the answer guys. I figured it out: label.setText('ABC
B'); Then in your label config, you simply define the style pro ...