Igniteui-angular: igx-dialog add button

Created on 23 Mar 2019  路  5Comments  路  Source: IgniteUI/igniteui-angular

In my application, i need to add 3 button in dialog.
1) Cancel
2) Update
3) Delete
I am able to add 2 buttons and dont know how to add 3rd button
I am using below code for add 2 buttons

<igx-dialog #form_editindata
    title="Update Data"
    leftButtonLabel="Cancel"
    (onLeftButtonSelect)="form_data.close()"
    (onRightButtonSelect)="btn_submit()"
    rightButtonLabel="Update"
    [closeOnOutsideSelect]="true">
</igx-dialog>

But how to add 3rd button let me know

dialog question

All 5 comments

Hey @nikunjgajera, dialog actions are customizable throught igxDialogActions directive. This sample shows how to configure it:

<igx-dialog #alert
    title="Notification"
    message="Your email has been sent successfully!"
    (onLeftButtonSelect)="alert.close()">
    <igx-dialog-actions>
        <div igxButton="raised">BUTTON 1</div>
        <div igxButton="raised">BUTTON 2</div>
        <div igxButton="raised">BUTTON 3</div>
    </igx-dialog-actions>
</igx-dialog>

Note: Keep in mind that both leftButtonLabel and rightButtonLabel should not be set.

thanks @zdrawku its working fine

@zdrawku I don't know if the dialog actions directive is very new? Just wanted to point out that this isn't mentioned in the dialog docs page.

You are correct :) The PR updating our docs was merged yesterday and we plan the dialog topic to be promoted to production on friday, once this is done I will let you know. Thank you for your constant help toward improving our product and docs.

Good to hear. Thank you for making a great product ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tkiryu picture tkiryu  路  3Comments

Hypenate picture Hypenate  路  3Comments

Eralmidia picture Eralmidia  路  3Comments

nikunjgajera picture nikunjgajera  路  3Comments

ViktorSlavov picture ViktorSlavov  路  3Comments