Why can’t you change the style value?

It’s a bit odd that the css produced includes each corner separately.
border-radius: 3px should do the same thing.

By default, css is not bound unless you use BindableCSSStyles. You can also 
handle the value changes manually, but the value needs to be propagated to the 
element.

HTH,
Harbs

> On Nov 12, 2017, at 11:42 AM, Carlos Rovira <[email protected]> wrote:
> 
> Hi,
> 
> what's the way to change borderRadius in a button dynamically?
> 
> I can use:
> 
> <js:style>
>            <js:SimpleCSSStyles id="buttonStyle" borderRadius="3"/>
> 
> and this generated
> 
> border-top-left-radius: 3px;
> border-top-right-radius: 3px;
> border-bottom-right-radius: 3px;
> border-bottom-left-radius: 3px;
> 
> If I use a change handler with a slider or textinput I can't change the
> default value in buttonStyle
> 
> There's some way to do this?
> 
> Thanks
> 
> -- 
> Carlos Rovira
> http://about.me/carlosrovira

Reply via email to