문제

I want to add some specific style for required fields, but I wantto have only one appearance id. Something like states

MyAppareance: {
    style:function () {
        if (required) {
            // add some special styling
        }
    }
}

I can misuse states for this, which I would like to avoid.

I there a way to access instance of control that is being styled in appearance declaration?

도움이 되었습니까?

해결책

Apparently there is no convenient way to access widget being styled. so I use states to overcome this problem.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top