Dialog Component

Request for a new feature or component
Post Reply
drodriguez
Posts: 33
Joined: Wed Apr 11, 2018 7:32 pm
Status: Offline

Dialog Component

Post by drodriguez » Thu May 17, 2018 7:07 pm

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

User avatar
olton
Site Admin
Posts: 69
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Fri May 18, 2018 9:51 am


User avatar
olton
Site Admin
Posts: 69
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Fri May 18, 2018 9:53 am

I'll think about the possibility of adding special dialogs to the library

drodriguez
Posts: 33
Joined: Wed Apr 11, 2018 7:32 pm
Status: Offline

Post by drodriguez » Fri May 18, 2018 2:04 pm

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 :)

User avatar
olton
Site Admin
Posts: 69
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Sat May 19, 2018 2:35 pm

New in 4.2.7

Image

Code: Select all

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

User avatar
olton
Site Admin
Posts: 69
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Sun May 20, 2018 5:43 pm


Post Reply