You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Rim <la...@gmail.com> on 2014/08/29 10:00:34 UTC

Change the style of an already rendered wicket ModalWindow

I want to make modal window transprent (opacity:0.5) after a click event in
one of its buttons. 
So, i try by using :

window.add(AttributeAppender.append("style","color:red; font-weight:bold")); 
or 
window.setCssClassName("custom-modal");

But none of these solutions allows to apply the desired style.

Any help will be grateful!

Thanks

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Change-the-style-of-an-already-rendered-wicket-ModalWindow-tp4667236.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Change the style of an already rendered wicket ModalWindow

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

You will need to repaint the ModalWindow to apply any UI changes.
Use target.add(window); for that.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Fri, Aug 29, 2014 at 11:00 AM, Rim <la...@gmail.com> wrote:

> I want to make modal window transprent (opacity:0.5) after a click event in
> one of its buttons.
> So, i try by using :
>
> window.add(AttributeAppender.append("style","color:red;
> font-weight:bold"));
> or
> window.setCssClassName("custom-modal");
>
> But none of these solutions allows to apply the desired style.
>
> Any help will be grateful!
>
> Thanks
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Change-the-style-of-an-already-rendered-wicket-ModalWindow-tp4667236.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>