Snippets

Search for code snippets in different languages (mainly Apex, Visualforce, Lightning, JavaScript, jQuery, HTML. Just start typing in the search box below



Show preview while searching.

Bookmark this page by pressing Ctrl + D  or Command + D, so that you can easily find code snippets.

Example links

8 comments:

  1. This page usually helps me to find the right code snippet. My first Salesforce bookmark.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. Can you please add an example of how to show a reusable modal window using aura. I can see that you have one for LWC. But nothing for Aura.

    ReplyDelete
    Replies
    1. Sure. Here you go - https://salesforcecodes.blogspot.com/2020/06/how-to-display-modal-popup-using-aura.html

      Delete
  4. Do you have an article on lightning message service?. Looks like that is the recommended way of communication between aura, lwc and visualforce

    ReplyDelete
    Replies
    1. Sorry about the delay. Here you go with examples in Visualforce, Aura and LWC - https://salesforcecodes.blogspot.com/2020/08/using-lightning-message-service-communicate-between-vf-aura-lwc.html

      Delete
  5. Can you please add a sample of an "autocomplete search component" in lightning using Aura/LWC?

    ReplyDelete