function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Robin BarnwellRobin Barnwell 

Lightning Component Properties & Methods

When I was researching this line of code I managed to level-up in my lightning knowledge, but it opened-up new questions.....
var validExpense = component.find('expenseform').reduce(function (validSoFar, inputCmp) {inputCmp.showHelpMessageIfInvalid(); return validSoFar && inputCmp.get('v.validity').valid;}, true);
I've worked out what its doing and how it works - tick.  But what is means in Components must have a define list of available Properties & Methods.

Does anyone know where I can find this list?  Reduce is a Javasript method but IsValid() is Salesforce.  Where can I get a definitive list please?
 
Hemant_SoniHemant_Soni
Hi Robin,
If want to know all the lightning method which salesforce use from aura frame work then please check below link and you will get your answer.
http://documentation.auraframework.org/auradocs#reference?topic=api:Component
And Please dont forgot to mark it solved.
Thanks
Robin BarnwellRobin Barnwell
Many thanks Hermant.  Is there a 2nd list to cover things like Valid, showHelpMessageIfInvalid and Reduce?

My concern is without a comprehensive list its not possible to know what is available till I discover it.
Hemant_SoniHemant_Soni
According to my knowledge the only above document is provided by salesforce and tried all things from the above library and i will not get any function which is not in above library.
Ashwin Kumar SrinivasanAshwin Kumar Srinivasan
Hi Robin,

https://developer.salesforce.com/docs/component-library?page=lightning:input , if you goto Specification  Tab at the end of it you should have the method provided for each components which we can make use  https://<myDomain>.lightning.force.com/componentReference/suite.app where <myDomain> is the name of your custom Salesforce domain which will give you with all the documentation of custom namespace as well.

and as mentioned by Hemant http://documentation.auraframework.org/auradocs#reference?topic=api:Component​ (http://documentation.auraframework.org/auradocs#reference?topic=api:Component) provides the JavaScript API documentation which also can accesed via my domain https://<myDomain>.lightning.force.com/auradocs/reference.app 

Thanks