Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jennifer on Sep 15, 2008 09:00
open dhtmlx forum
Get the skin style?

Is there a way to get the skin style in String form?
Answer posted by Support on Sep 16, 2008 02:11
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.
Answer posted by Jennifer on Sep 16, 2008 05:27

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!

Answer posted by Support on Sep 18, 2008 02:27
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];