SalesforceSFDC / slds-custom-lightning-cmp-demo

Demo code from the Dreamforce '18 presentation for Building Custom Lightning Components with the Lightning Design System

Home Page:https://www.youtube.com/watch?v=-Ytt0HcbmxU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome

This repository contains the demo code from our Dreamforce '18 talk for Building Custom Lightning Components with the Lightning Design System

Files

copyPastedExpressionBlueprint.cmp

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

expressionBlueprintUsingLightningComponents.cmp

This file shows how to replace the pieces of the blueprint with existing lightning components, as diagrammed in this slide from the demo

Diagram showing Expression Blueprint broken down into Comboboxes, Inputs, Buttons, and Button Icons

Next Steps

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:

  1. Customize the aura attributes and input labels to be specific to your use case
  2. Create a new ExpressionRow component that you could use to dynamically create rows when the "Add Condition" button is clicked
  3. Add JavaScript to implement the "Delete Condition" and "Add Condition" buttons
  4. Implement the Submit button, which might iterate through your ExpressionRow components to grab the user selected values and store that data

Resources

Helpful Trailhead modules:

  1. Lightning Design System
  2. UX Prototyping Basics
  3. Build a Lightning App with the Lightning Design System
  4. Build a Lightning Component to Override a Standard Action
  5. Lightning App Builder

About

Demo code from the Dreamforce '18 presentation for Building Custom Lightning Components with the Lightning Design System

https://www.youtube.com/watch?v=-Ytt0HcbmxU

License:MIT License