WDK中关键词"notdefined"的含义

关键词“notdefined”用来确定当前的action或component在当前的scope(即r_object_type)中是否有效,为true则无效。用来屏蔽action或component从父类型向当前子类型的应用。开发指导文档中有如下一段话:
1.About Component:
notdefined: Configurations can hide elements that are defined in the parent scope by using the
notdefined attribute. Refer to Hiding a component for specific contexts, page 252 for more information.
In the following example, the checkout component is not available for folders:
<scope type='dm_folder'>
<component id="checkout" notdefined="true"></component>
</scope>
2.About Action
If an action definition is scoped to a specific object type, the definition applies to subtypes of the type.
To turn off the action for certain subtypes, create a scoped definition for the subtype and use the
notdefined attribute. In the following example, the checkout action does not apply to folders:
<scope type='dm_folder'>
<action id="checkout" notdefined="true"></action>
</scope>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值