Guest User

Untitled

a guest
Jan 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <aura:if isTrue="{!v.customScriptCSV != null}">
  2. <ltng:require scripts="{!v.customScriptCSV}" afterScriptsLoaded="
  3. {!c.doAfterScriptsLoaded}"/>
  4. </aura:if>
  5. <aura:attribute name="customScriptCSV" type="String" access="global"/>
  6.  
  7. var customScriptCSV = $A.get('$Resource.' +
  8. someobject.namespace__Custom_Script__c) + ","
  9. + $A.get('$Resource.LayoutJS') + "," +
  10. $A.get('$Resource.ValidationJS') + "," +
  11. $A.get('$Resource.LayoutProcessor');
  12. console.log("customScriptCSV: " + customScriptCSV);
  13. component.set("v.customScriptCSV" , customScriptCSV);
Add Comment
Please, Sign In to add comment