•
属性
for:将此作用于具体组件,值为要作用组件的ID
name:指定此effect的名字
type:指定效果类型,常用的Appear,Fade
•
用法
(
Editor.xhtml
)
<rich:effect for="ContentContainer" name="showContent" type="Appear"></rich:effect>
<rich:effect for="ContentContainer" name="hideContent" type="Fade"></rich:effect>
<s:div id="ContentContainer">
<rich:panel>
<h:outputText value="实现Effect"/>
</rich:panel>
</s:div>
<input type="button" onclick="showContent();" value="显示"/>
<input type="button" onclick="hideContent({duration:0.7,from:1.0,to:0.0});" value="隐藏"/>
•源码