Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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