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 . Here is the link .

Thanks in Advance.

  • 1
    SLDS only provides the UI. As of now you have to write for the behavior on your own. There are some existing frameworks which is mostly used like Lightning Dart or Appiphony
    – Raul
    May 3 '17 at 11:58

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 }"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.