Add the following snippet to your visualforce page:
Loading…
<apex:actionStatus id="pageStatus">
<apex:facet name="start">
<apex:outputPanel >
<img src="/img/loading32.gif" width="25" height="25" />
<apex:outputLabel value="Loading..."/>
</apex:outputPanel>
</apex:facet>
</apex:actionStatus>
Command Button :
<apex:commandButton action="{!doSomeAction}" rerender="rerenderId" status="pageStatus" value="Do Action"/>
The final rendered spinner will look like this:
No comments:
Post a Comment