5

lightning:progressIndicator uses something called lightning:progressStep, but there isn't a specific article for it under Lightning component Reference. The documentation for lightning:progressIndicator mentions that lightning:progressStep supports onstepblur, onstepfocus, onstepmouseenter and onstepmouseleave (see below) but doesn't seem like that list is exhaustive, because I just slapped in an onclick to it and it worked. So wondering if there is a place or a way to read other supported events as opposed to trying'em all and hope they work?

enter image description here

  • using onclick with the path type, I don't get any values passed along to the event. Which seems to make this component almost useless. How were you able to make use of those events for the base type? – Michael Sobczak May 8 at 21:24
5

The actual link that you posted is the best place for reference purposes Lightning component Reference. It is not unheard of that some events 'Work' with lightning:components, such as the onclick event, for example, the lightning:input component has no mention of the onClick event, but seems to handle it (not always well), but note that it will not be supported by Salesforce (I have had several issues with the OnClick event with numerous components, and support seems to always mention that since it is not documented as a supported attribute/event to avoid using it, and rather stick to the documented ones)

  • 4
    I've been saying this for like a decade now in some form or another: if it's not in the documentation, presume it doesn't work. – sfdcfox Oct 8 '18 at 15:55
  • 1
    Congrats on your 10K rep, @glls! – Lightning Evangelist Oct 8 '18 at 16:01
  • My guess is that Lightning is using the underlying ECMAScript event model available in all modern browsers. I doubt they would reinvent the wheel there. – Michael Sobczak May 10 at 14:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.