Find step-by-step aura documentation component example, Lightning Component Library, Developer guide and Lightning design system.
The Lightning Component framework is a UI framework for developing single page applications for mobile and desktop devices.
As of Spring β19 (API version 45.0), you can build Lightning components using two programming models: the Lightning Web Components model, and the original Aura Components model. Lightning web components are custom HTML elements built using HTML and modern JavaScript. Lightning web components and Aura components can coexist and interoperate on a page.
Configure Lightning web components and Aura components to work in Lightning App Builder and Experience Builder. Admins and end users donβt know which programming model was used to develop the components. To them, theyβre simply Lightning components. To know more, Use this Link..
Aura Component:- File Input Controller Js
handleFilesChange : function (cmp, event) {
var files = event.getSource().get("v.files");
alert(files.length + ' files !!');
}
Aura Component:- Input Checkbox
The following checkbox uses a component attribute to bind its value.
Aura Component:- Input Checkbox Controller Js
onCheck: function(cmp, evt) {
var checkCmp = cmp.find("checkbox");
resultCmp = cmp.find("checkResult");
resultCmp.set("v.value", ""+checkCmp.get("v.value"));
}
Aura Component:- File Input Controller Js
handleFilesChange : function (cmp, event) {
var files = event.getSource().get("v.files");
alert(files.length + ' files !!');
}
Aura Component:- Input Checkbox
The following checkbox uses a component attribute to bind its value.
Aura Component:- Input Checkbox Controller Js
onCheck: function(cmp, evt) {
var checkCmp = cmp.find("checkbox");
resultCmp = cmp.find("checkResult");
resultCmp.set("v.value", ""+checkCmp.get("v.value"));
}
Further post that would you like to learn in Salesforce
How do you prevent duplicate records in Salesforce Apex?
Preventing duplicate records in Salesforce based on a single field can be achieved using a Set that can store the values of that specific field from all existing records and compare it with the list of new records that are going to be inserted.
How do you prevent duplicate records in Salesforce using validation rule?
We'll check this field in our flow. Next, we need to create the validation rule that will prevent a user from creating the duplicate record. This rule only needs to look at our Prevent Save checkbox. Since validation rules fire when the criteria is true, we only have to add the API name of the field.
How do I bypass duplicates in Salesforce?
For a duplicate rule, when the Alert option is enabled, bypass alerts and save duplicate records by setting this property to true . Prevent duplicate records from being saved by setting this property to false.
Related Topics | You May Also Like
Our Free Courses β
π Get Free Course β
π Salesforce Administrators π Salesforce Lightning Flow Builder π Salesforce Record Trigger Flow Builder |
π Get Free Course β
π Aura Lightning Framework π Lightning Web Component (LWC) π Rest APIs Integration |