Page 1 of 1

Dialog Component

Posted: Thu May 17, 2018 7:07 pm
by drodriguez
Some time Dialog Component is used like only information (not dialog actions)

1. Default styles (class): Success, Warning, Alert (like .button .success, .button .warning, .button .alert)
2. close button: data-close-button to show dialog close button on top right

can i hide div dialog-actions? (close with overlayClickClose and/or close button)

edit:
Answer my question (hide dialog-actions):

Metro.dialog.create({
actions: [],
defaultAction: false
});

thanks

Re: Dialog Component

Posted: Fri May 18, 2018 9:51 am
by olton

Re: Dialog Component

Posted: Fri May 18, 2018 9:53 am
by olton
I'll think about the possibility of adding special dialogs to the library

Re: Dialog Component

Posted: Fri May 18, 2018 2:04 pm
by drodriguez
olton wrote:
Fri May 18, 2018 9:53 am
I'll think about the possibility of adding special dialogs to the library
Thanks.
That would be great :)

Re: Dialog Component

Posted: Sat May 19, 2018 2:35 pm
by olton
New in 4.2.7

Image

Code: Select all

Metro.infobox.create("...your_info_text_in_html...", "alert")

Re: Dialog Component  

Posted: Sun May 20, 2018 5:43 pm
by olton