Sproutcore: Changing css properties on mouse events

Posted by greg on Stack Overflow See other posts from Stack Overflow or by greg
Published on 2010-05-21T16:20:33Z Indexed on 2010/05/24 17:51 UTC
Read the original article Hit count: 290

Filed under:
|
|

In sproutcore I'm trying to change the border thickness of a div when a user mouses over it. All the other code is working but I can't find how to either access the css properties directly or attach a new classname to the div.

borderDiv: SC.View.design({
    layout:{top:60, left:60, width: 400, height: 525},
    classNames:"panel",

    mouseEntered: function(evt) {
        alert("this is working");
        //
        // No idea what to put here to change css properties
        //
        return YES
    }
})

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about sproutcore