A small tip to explore how to call a method of a control

简介: Created by Jerry Wang, last modified on Mar 20, 2015

一个很小的tip:比如我想把一个table里的每个column 设置成宽度自适应的,需要知道应该call哪个方法来实现。


[外链图片转存失败(img-zsZYaNSR-1568514504160)(https://user-images.githubusercontent.com/5669954/27319091-09e05484-5590-11e7-9566-d5418a44d2b9.png)]

一种办法是查help 文档,另一种办法是在debugger里研究:


根据经验这种API一般naming convention都是set:


image.png根据经验定位到应该call setAutoResizable这个方法。下一个问题就是这个方法到底应该传什么参数进去。

直接在debugger里执行方法getMetadata, 展开返回的结果:image.pngimage.png

相关文章
custom field further usage - add into UI and report
custom field further usage - add into UI and report
113 0
custom field further usage - add into UI and report
the code place where the binding is converted to final value displayed in u
the code place where the binding is converted to final value displayed in u
104 0
the code place where the binding is converted to final value displayed in u
Cannot find source code based button in SE24
When you are logging on to customer system for incident handling, you want to switch to source code to perform some keyword search. However, you could not find button “Source code based builder” in toolbar, with following warning message: ———————————————— 版权声明:本文为CSDN博主「汪子熙」的原创文章,遵循CC 4.0 BY-SA版权协
Cannot find source code based button in SE24
Cannot find source code based button in SE24 - modification assistant
Cannot find source code based button in SE24 - modification assistant
127 0
the code place where the binding is converted to final value displayed in ui
the code place where the binding is converted to final value displayed in ui
the code place where the binding is converted to final value displayed in ui