-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Can we increase size of progressbox
Hello anujtarun,
You can modify the size of the Progressbox by adding the following entry into your zk.xml:
<device-config>
<device-type>ajax</device-type>
<timeout-uri>/timeout.zul</timeout-uri>
<embed><![CDATA[
<script type="text/javascript">
zk.afterLoad("zk", function () {
var oldProgressbox = zUtl.progressbox;
zUtl.progressbox = function () {
oldProgressbox.apply(this, arguments);
var $mask = jq('.z-loading');
if ($mask) {
var $img = jq('.z-loading-indicator'),
$body = jq(document.body),
body = $body[0],
bw = 300;
bh = 300;
// update mask and image's style
$mask.width(bw);
$mask.height(bh);
$mask.css('opacity', .75);
$img.width('300px');
$img.height('300px');
}
}
});
</script>
]]></embed>
</device-config>
Another method would be to create a custom window component in order to use it as a progressBox.
Best Regards,
Darksu
Asked: 2014-05-30 12:13:18 +0800
Seen: 10 times
Last updated: Jul 25 '14
See Here:http://forum.zkoss.org/question/47831/progressbox-equivalent-for-zk-502/
sitansu ( 2014-05-30 13:04:42 +0800 )editno dear i have checked it before posting ..
anujtarun ( 2014-05-30 13:10:21 +0800 )edit