Tips for Passing the Lightning Web Components Specialist Superbadge – Challenge 6
This post describes about the Lightning Web Components Specialist Superbadge Challenge 6 Guide (Tips and Guidelines).
Lightning Web Components Specialist Superbadge Challenge 6: Customize the component boatMap
To Pass the Lightning Web Components Specialist Superbadge Challenge 6, require to create LWC component called “boatMap“.
After Completing the Lightning Web Components Specialist Superbadge Challenge 6: Customize the component boatMap, you’ll be able to learn:
- Creating boatMap LWC Component.
Possible Errors:
boatMap.html
We can’t find the required imports in the component boatMap JavaScript file. Make sure the component was customized according to the requirements, including the imports from Lightning Web Components.
boatMap.js
We can’t find the required imports in the component boatTile JavaScript file. Make sure the component was customized according to the requirements, including the imports from Lightning Web Components.
Tips/Guide to passing the LWC Challenge 6:
- Create boatTile LWC Components as per instructions
- Read Carefully in the instructions and add the boat information in the HTML UI file to render the boat information with appropriate H1, H2 & Div HTML tags for the boat name, boat owner name, price, length and type values.
- Import properly in the JS file
- add the necessary api decorators to the property/variables in JS file.
- Getter for dynamically setting the background-image in the backgroundStyle() in the JS file
- Getter for dynamically setting the title class based on the selected boat in the tileClass() in the JS file
- Create CustomEvent with passing the selectedBoatId and dispatchEvent which created
Reference Link:
Mark a Configuration Object Property as Dynamic and Reactive in LWC – https://developer.salesforce.com/docs/component-library/documentation/en/lwc/data_wire_service_about
Create and Dispatch Events – https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.events_create_dispatch
Lightning Formatted Number in LWC- https://developer.salesforce.com/docs/component-library/bundle/lightning-formatted-number/example
Refer the following post about the Tips for Passing the Lightning Web Components Specialist Superbadge Challenges:-
- Lightning Web Components Specialist Challenge 1
- Lightning Web Components Specialist Challenge 2
- Lightning Web Components Specialist Challenge 3
- Lightning Web Components Specialist Challenge 4
- Lightning Web Components Specialist Challenge 5
- Lightning Web Components Specialist Challenge 6
- Lightning Web Components Specialist Challenge 7
- Lightning Web Components Specialist Challenge 8
- Lightning Web Components Specialist Challenge 9
- Lightning Web Components Specialist Challenge 10
- Lightning Web Components Specialist Challenge 11
- Lightning Web Components Specialist Challenge 12
- Lightning Web Components Specialist Challenge 13
- Lightning Web Components Specialist Challenge 14
- Lightning Web Components Specialist Challenge 15
- Lightning Web Components Specialist Challenge 16
- Lightning Web Components Specialist Challenge 17
- Lightning Web Components Specialist Challenge 18
The post Tips for Passing the Lightning Web Components Specialist Superbadge – Challenge 6 appeared first on TheBlogReaders.com.