July 2018
Beginner to intermediate
458 pages
9h 58m
English
Lightning input components allow you to create input for the form elements. They have built-in validations, based on the type of field, and can be used with various data types. To learn more about Lightning: input, refer to the standard component library at https://developer.Salesforce.com/docs/component-library/bundle/Lightning:input/example.
The following snippet shows a working example of the code for the Lightning:input component. The component markup creates a simple form for lead capture. Notice that we have made all of the fields mandatory by using the required attribute on lighnting:input:
<aura:component access="global" > <aura:attribute name="lastName" type="String"/> <aura:attribute name="email" ...