C4C UI上UI元素的顯示和隱藏能夠經過Key User在Adaptation模式裏經過編輯一些簡單的rule去控制,諸如這種格式:express
if ( logic expression = true ) then display the UI element else hide the UI element endif
這樣就不須要由Partner去作二次開發實現了。ruby
這整套邏輯的工做原理在個人博客How to change UI element visibility dynamically via Rule Editor – and how it works under the hood裏有介紹。ide
用一句話歸納:在rule裏將某個UI元素設爲隱藏以後,UI5對應的渲染程序就會直接將其忽略——不會進入下圖第78行的IF渲染分支裏。ui
要獲取更多Jerry的原創技術文章,請關注公衆號"汪子熙"或者掃描下面二維碼:code