我想动态切换顶点:组件, 使用顶点的renderd属性进行控制:outputpanel 我写了以下代码。
在这种情况下,类似的代码将重复, 有没有一种方法可以更简单地编写它?
<apex:outputPanel rendered="{!CONTAINS($SetUp.Layout.Layout__c,'InputFormA')}">
<c:InputFormA CustomObject__c="{!CustomObject__c}"/>
</apex:outputPanel>
<apex:outputPanel rendered="{!CONTAINS($SetUp.Layout.Layout__c,'InputFormB')}">
<c:InputFormB CustomObject__c="{!CustomObject__c}"/>
</apex:outputPanel>
<apex:outputPanel rendered="{!CONTAINS($SetUp.Layout.Layout__c,'InputFormC')}">
<c:InputFormC CustomObject__c="{!CustomObject__c}"/>
</apex:outputPanel>