View aura_component_1.cmp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component implements="flexipage:availableForAllPageTypes" access="global"> | |
<div style="padding: 20px;background: white;margin: 10px;border-radius: 4px;height: 120px;"> | |
<h1 style="font-size: 15px;">Aura Component: Firing Event</h1> | |
<c:registerEvent name="testevent" namespace="astro" aura:id="first-event"></c:registerEvent> | |
<lightning:button label="Fire Event From Aura" onclick="{!c.fireEvent}"></lightning:button> | |
</div> | |
</aura:component> |
View lwc_streaming_demo.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<!-- Push Topic --> | |
<c-lwc_streaming_api | |
channel="/topic/NewContactCreated" | |
api-version="45.0" | |
debug=true | |
onmessage={handleMessage} | |
onerror={handleError} | |
class="lwc_streaming_api-1"> | |
</c-lwc_streaming_api> |
View ContactSearchController.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class ContactSearchController { | |
@AuraEnabled | |
public static List<Contact> getContacts(string name){ | |
return [Select id,Name,phone,Email from Contact WHERE name like : '%'+name.trim()+'%' ]; | |
} | |
} |
View AppException.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class AppException extends Exception {} |
View WireServiceDemo.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<style> | |
table tr td{ | |
padding: 10px; | |
border: 1px solid black; | |
} | |
</style> | |
<div style="background:white;padding:20px;"> | |
<table> | |
<tr> |
View facebooktimeline.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<iframe | |
src={facebookSrc} | |
width="340" | |
height="500" | |
style="border:none;overflow:hidden" | |
scrolling="no"></iframe> | |
</template> |
View child.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<style> | |
table tr td{ | |
padding: 10px; | |
border: 1px solid black; | |
} | |
</style> | |
<table style="background:white;"> | |
<tr> |
View Aura:if and Aura:set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:renderIf isTrue="{!v.TrueVariable}"> | |
True | |
<aura:set attribute="else"> | |
False | |
</aura:set> | |
</aura:renderIf> |
View template if:true and template if:false
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--This will render if isTrue = true--> | |
<template if:true={showTom}> | |
True Part | |
</template> | |
<!--This will render if isFalse = false--> | |
<template if:false={showTom}> | |
False Part | |
</template> |
View Rendered in VF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:outputPanel rendered="{!TrueVariable}"> | |
True | |
</apex:outputPanel> | |
<apex:outputPanel rendered="{! !TrueVariable }"> | |
False | |
</apex:outputPanel> |
NewerOlder