Skip to content

Instantly share code, notes, and snippets.

@sriniind19
Last active November 4, 2021 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sriniind19/900d1b4036838c0d80a1ee92009bed89 to your computer and use it in GitHub Desktop.
Save sriniind19/900d1b4036838c0d80a1ee92009bed89 to your computer and use it in GitHub Desktop.
Aura Course Template
// Assignments -
1. On Contact, based on the mailing country display that country flag on right side of the record page.
-- Aura Introduction ---
1. Advantage when compared to Visualforce
2. Only created from Developer Console and VS Code
3. My Domain is required in Sandbox
4. Aura Component Bundle (8) --> Cannot see preview
5. Aura Application Bundle (7) --> Can see preview but to apply style extend force:slds
6. Aura Component Library and Lightning Design System Website
-- c:globalValueProviders component -- https://gist.github.com/sriniind19/04769e9c45a28be160fcc9888de00c2a
** Topics Discussed ***
1. Global Value Providers -
* $Browser.formFactor in component
* $A.get("$Browser.formFactor") in js
* $Locale.language in component
* $A.get("$Locale.language") in js
* $Resource.yourGraphics + '/images/logo.jpg' in component
* $A.get('$Resource.yourGraphics') + '/images/avatar1.jpg'; in js
* $Label.c.CustomLabelName
-- c:componentIds component -- https://gist.github.com/sriniind19/8f5f3df688e2a6044676651d1ad35914
** Topics Discussed ***
2. Component Ids -
* Local Id
* Global Id
3. Difference b/w event.getSource() and event.target and css of the components
-- c:dataTypes component -- https://gist.github.com/sriniind19/e25fe7b905e25cb68afa80e7f742205f
** Related Components ***
<c:auraMethodParent/>
<c:auraMethodChild aura:id="childId"/>
<c:auraMethodServParent/>
<c:auraMethodServChild aura:id="childMethodSerId"/>
auraMethodServChildClass
** Topics Discussed ***
4. Data Type of aura:attribute -
* Basic Types
* aura:iteration
* Function Type
* Specially explain about function type with aura:method sync, aura:method async type and aura:action
* Object Types
* Standard / Custom Object Types
* Collection Types
* Custom Apex Class Types
-- c:expressions component -- https://gist.github.com/sriniind19/ae1acc5e0278c2ac10741daf264b2023
** Related Components ***
<c:expressions/>
<c:expressionsChild/>
** Topics Discussed ***
5. Expressions -
* Difference between bound and unbound expression
* Parent and child example for bound and unbound (valueChange event will fire for bound)
* Conditional expressions: ternary and aura:if
* Expression Operators (eq, lt, &amp;&amp;)
* Expression Functions (and(), equals())
-- c:cmpComposition component -- https://gist.github.com/sriniind19/7d77da1d6b5d0056e7df4943fc007fbc
** Related Components ***
<c:cmpComposition/>
<c:cmpCompositionChild/>
** Topics Discussed ***
6. Component Composition (Component inside the other component) -
* Component body and Component facets
7. Controlling access (public , global (private for attribute))
-- c:cmpInheritance component -- https://gist.github.com/sriniind19/0eb24071d2511286dac3ade62fdd60e5
** Topics Discussed ***
8. Composition and Inheritance
9. Abstract Component and Interfaces
-- c:showOrHide component -- https://gist.github.com/sriniind19/d79fc7d7528f1dc66036db7590786d12
** Topics Discussed ***
10. Conditionally Rendering components -
* aura:if
* css toggle
* Dynamically creating the component
-- c:usingCmps component -- https://gist.github.com/sriniind19/03786098b15c5842486012e04a688eac
** Topics Discussed ***
11. Using the components -
* Using design in App Builder -
- Attributes
- Form Factor
- objects restriction
* Documentation Resource
* Configuring the component as a custom tab
* Custom Actions
-- c:recordSpecificActions component -- https://gist.github.com/sriniind19/0fb2f7c53f489540f3c88a842b4c2c8b
** Topics Discussed ***
12. Record Specific Actions
-- c:standardActionOverride component -- https://gist.github.com/sriniind19/fe7831fa3b1d3256c9176731aa5f672b
** Steps ***
a. Expose the component to override the New and Edit buttons
b. Introduct Form inputs and buttons with styles
c. introduce a component with the picklist values
c. Introduce lightning data service to save the record
d. Introduce navigation events for the navigation
e. Do unit testing for New Override
** Related Components ***
<c:pickListValues/>
** Topics Discussed ***
13. Lightning Data Services (LDS)
14. Overriding the standard actions
-- c:navigationContainer component -- https://gist.github.com/sriniind19/568dfb3953d0ab3ed6c7d1f95080893e
15. Navigating to the Record Home Page and List View Page
16. Navigating to the new record page with default values
17. Navigation on click on a button
-- c: ConSearch_Vf_Emb component -- https://gist.github.com/sriniind19/16a2c0e9339b5adc72e20a930d83ccab
18. Using the lightning component in Visualforce Page and exposing to the guest user
-- c:eventHandler component -- https://gist.github.com/sriniind19/7e5df08d40fbcd0fc8bda628649569e7
19. Communication with events
** Related Components **
<!-- Step 1: eventComponent.evt - Create Component event -->
<!-- Step 2: eventRegister.cmp - Firing the event which can be handled by Parent -->
<!-- Step 3: eventHandler.cmp - Handling the event which is fired from the child -->
- Component to server event communication: https://sforce.co/3Bo01Ur
Components Events -
* Registering the event
* Handling the evet
- Application Events - https://sforce.co/2WF8Om8
-- Install and Deploy below article components --
20. Lightning Component Events Life Cycle - https://sforce.co/3kEVvdB
21. Lightning System Events - https://sforce.co/2UZOsDo | https://sforce.co/3kIPug3
-- c:demoRegistrationContainer -- https://bit.ly/38CnF3s
22. Project: Demo Registration for a course
-- c:datatableWithRowActions.cmp -- https://bit.ly/38Oub70
23. Project: To show the records with row level actions and pagination
-- c:lmsAuraPublisher.cmp | lmsAuraSubscriber.cmp -- https://gist.github.com/sriniind19/684339b302f5f0c793029847401adeea
24. Lightning Message Channel and Lightning Message Service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment