-
FEATURED COMPONENTS
First time here? Check out the FAQ!
As it says in the subject title, the notification information box has a limit to how much text it can hold. I prefer the Clients.showNotification styling over Messagebox, so is it possible in further editions to allow the height of the box to flex to the size of the content?
Thanks,
Richard
Hi, currently, ZK doesn't provide this feature, you can post new feature request
For now, you can override notification style by
.z-notification .z-notification-cl, .z-notification .z-notification-cnt { height: 500px; width: 250px; }
Clients.showNotification("hifffff","info", win, "middle_right",10);
Duration is not working. I want to show the notification for 30 sec and auto dismiss.
But no effect when i change the last argument
The duration is in millisecond, please try
Clients.showNotification("hifffff","info", win, "middle_right",30000);
This works fine for me in ZK 6.5
Regards,
Ben
I'm trying override notification style in ZK7, but it doesn't work. However in ZK 6.5.4 worked fine. Can somebody confirm that is a bug?
Thank you.
Hi sarco,
Here is how you have to override in ZK7.
.z-notification-pointer ~ .z-notification-content
{
display:table-cell;
width:150px;
height:50px;
min-height:60px;
${t:borderRadius('5px') };
padding:5px 18px 5px 45px;
vertical-align:middle;
}
Have Fun...
Greetings,
Varun.
protected void showNotification(String message) {
Clients.showNotification(message, Messagebox.INFORMATION, null, null, 3000);
}
Hi Varun,
Thank you so much,
I have checked that works for Clients.showNotification(msg, component); but without 'component' it doesn't still work.
Thank you!
Asked: 2012-09-25 02:06:05 +0800
Seen: 414 times
Last updated: Jun 13 '15