I'm looking for good sites for Aura components to use as references, can you please share them with me?
If to be more specific, I'm looking to build a page with a Header and a related list beneath:
The Header will contain an account record.
The related list will contain the Contacts that belong to that account.
Next to the Contact there'll be a checkbox.
All the contacts that will be checked, after save will become inactive.
Thanks in advance
Victor
Hi, ({
getRecordALL : function(component, event) {
var recordId = component.get("v.recordId");
var action = component.get("c.getInitSearch");
action.setParams({"recordId":recordId});
action.setCallback(this, function(response){
if (action.getState() == "SUCCESS") {
var myVal = response.getReturnValue();
component.set("v.myColumns",myVal.myColumns);
component.set("v.myData",myVal.myData);
} else if (action.getState() == "ERROR" ) {
var errors = response.getError();
if (errors[0] && errors[0].message) {
component.set("v.message", errors[0].message);
}
}
});
$A.enqueueAction(action);
},
})