• Sandy1
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies
How to use ng-show ,ng-hide ,ng-click in Apex: command Button or Action Function is it possible ?
Generaly we use spinner like this 
<apex:CommandButton status ="loadingStatus" styleClass="slds-button slds-button_outline-brand" value="Report Missing Document" action="{!reportPopupOpen}" reRender="reportPopup"/>


<apex:actionStatus id="loadingStatus">
<apex:facet name="stop">
    <apex:outputPanel >
    </apex:outputPanel>
</apex:facet>
<apex:facet name="start">
    <apex:outputPanel >
        <div role="status" class="slds-spinner slds-spinner_medium slds-spinner_brand">
            <span class="slds-assistive-text">Loading</span>
            <div class="slds-spinner__dot-a"></div>
            <div class="slds-spinner__dot-b"></div>
        </div>                                                  
    </apex:outputPanel>
</apex:facet>


How to use spinner with button why i need this is im using angular js function on button im not able to do spinner for that
                           <button id="buttonClr" status="loadingStatus" class="slds-button slds-button_brand" ng-show="myForm.myInput.$valid"    ng-click="vm.searchs(result, event); "><b>Search</b></button>