Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created December 8, 2019 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arun12209/4c3acf4d4a9528d5dd12bb75729f3ddc to your computer and use it in GitHub Desktop.
Save arun12209/4c3acf4d4a9528d5dd12bb75729f3ddc to your computer and use it in GitHub Desktop.
LikeButtonCmp
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
<aura:attribute name="buttonstate" type="Boolean" default="false"/>
<lightning:buttonStateful
state="{! v.buttonstate }"
variant="text"
labelWhenOff="Like"
labelWhenOn="Liked"
iconNameWhenOff="utility:like"
iconNameWhenOn="utility:like"
onclick="{! c.handleClick }"
/>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment