I am new to this SLDS classes. The button group icon is not working. The UI renders perfectly but the event are not getting fired. Am I missing something?
Thanks in advance.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI am new to this SLDS classes. The button group icon is not working. The UI renders perfectly but the event are not getting fired. Am I missing something?
Thanks in advance.
If you are using SLDS in a Lightning Component, then you can leverage the various components provided by the platform to do most of the work for you including dispatching to controller methods and in the case of the lightning:
components also applying the correct CSS classes:
<div class="slds-button-group" role="group">
<lightning:button label="Save" variant="brand" onclick="{! c.doSave }"/>
<lightning:button label="Cancel" variant="neutral" onclick="{! c.doCancel }"/>
</div>