Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top