This repository contains the demo code from our Dreamforce '18 talk for Building Custom Lightning Components with the Lightning Design System
This file contains the code we copied from the Lightning Design System's Expression Blueprint page
- The only changes we made were switching out the SVGs with lightning:icon and removing the "Add Group" button since we didn't need it for the demo
- This code is the starting point in the demo
This file shows how to replace the pieces of the blueprint with existing lightning components, as diagrammed in this slide from the demo
expressionBlueprintUsingLightningComponents.cmp
is a good starting point for building a fully functional Expression Component that responds to user input and utilizes the resulting data
Some next steps might include:
- Customize the aura attributes and input labels to be specific to your use case
- Create a new
ExpressionRow
component that you could use to dynamically create rows when the "Add Condition" button is clicked - Add JavaScript to implement the "Delete Condition" and "Add Condition" buttons
- Implement the Submit button, which might iterate through your
ExpressionRow
components to grab the user selected values and store that data
Helpful Trailhead modules: