Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created December 8, 2019 10:00
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/b34242907a025f2e39edf7d175067ae7 to your computer and use it in GitHub Desktop.
Save arun12209/b34242907a025f2e39edf7d175067ae7 to your computer and use it in GitHub Desktop.
MuteButtonCmp
<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"/>
<aura:attribute name="button1state" type="Boolean" default="false"/>
<lightning:buttonStateful
labelWhenOff="Mute"
labelWhenOn="Muted"
labelWhenHover="UnMute"
iconNameWhenOff="utility:unmuted"
iconNameWhenOn="utility:muted"
iconNameWhenHover="utility:unmuted"
state="{! v.buttonstate }"
onclick="{! c.handleClick }"
/>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment