UI binding render - how to check

80 阅读1分钟

Created by Jerry Wang, last modified on May 14, 2015

  • getExternalValue
  • bind
  • binding
  • getExternalValue
  • PropertyBinding
  • getValue
  • oValue
  • oType
  • fnFormatter
  • formatValue
    如果xml view里某个control维护了binding path,但是runtime时field显示为空,则可debug这个js file里的getExternalValue。
    所有control最终显示在ui上的value都会通过该方法计算出来。

    line 75:raw value通过this.getValue返回
    line77: 如果binding path还显式地由application 定义了formatter,则调用formatter,将line 75的rawValue传入
    line 79, 80: 执行formatter
    一个formatter的执行例子:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":