This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
CSS class in an external file?
I have a custom control, but I would really hate to have to define the style in code
rather than assign a class name to the DOM node.
I have call back events from the control and I would like to be able to assign a child
node's className equal to its 'selected' style class via getElementById instead of changing
the class object's _defaultCellStyleCSSName and removing/appending the parent control.
You down with OOP? Yeah you know me!
Joined: Jan 24, 2006
I guess another alternative would be to store an actual style of a DOM node in the class.
So for my dataGridCell class:
I could just use that _domElement object in my toDom function as well.
I guess I could assign default classNames (same as actual object class name)
for default and selected/highlighted and just assign the .style, if anything is set
it will trump, if not, default cssclass.