Generic Component for Loading Icon on Visualforce Pages
While developing a Solution using Visualforce page and Apex, we have one common requirement which is to show loading icon whenever user click on button/link/panel etc. Few use case to show loading icon could be: 1. Notify user that action he asked for is in progress. 2. Don't want user to make any change till previous action finishes. The following is the screenshot of how Loading icon would show: To achieve this, we will create a new VF Component ( Go to Setup -> Develop -> Component -> New. Name= “LoadingIcon” ) The Icon that we will be using here is standard Icon provided by salesforce, therefore no need to upload any static resource. Visualforce Component: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 <apex:component ...