yes,appears useful to me :) however not sure if this should be added in wicket-core.. another way of doing the same thing is a reusable ondomreadyheaderitem using jquery's css(propertyName,value) in a neat way ..
On Fri, Feb 1, 2013 at 8:14 PM, William Speirs <[email protected]> wrote: > I created a Behavior the other night that allows one to modify the style > attribute of a tag by easily adding or removing a CSS property. Why is this > better/different than AttributeModifier? Because you can update a CSS > property inside the style attribute. Basic usage: > > myComponent.add(new StyleModifier("background-color", "blue")); // changes > (or adds) the background-color property of the style tag on this component > to blue > > myComponent.add(new StyleModifier("background-color")); // removes the > background-color property from the style tag on this component > > Would anyone else find this useful? Would the devs on this list consider > taking it in for the next release of Wicket (if so I can open an JIRA)? Is > this already implemented and I'm just too stupid to have found it? > > Thanks... > > Bill- -- regards, Vineet Semwal --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
