Is there a way to get the skin style in String form?
Which component do you mean ?
Grid provides API which allows to get cell’s background-color, color and horizontal align.
But components don’t have API to get the “computed” style in the string form.
Oh, I mean the name of the skin style set by setSkin(name)
- setSkin(name)
set one of predefined css styles (xp, mt, gray, light, clear, modern)
Sorry about that, thanks in advance!
There is no API to get the skin name. The name can be placed into some variable before calling setSkin.
Or you can try to use the following approach:
var container_style = mygrid.entBox.className;
var skin_name =container_style.split("_")[1];