This content has been marked as final. Show 3 replies
backgroundColor is a style property you'd set with
When you're looking at the docs, be sure to click the "show inherited styles" link to see all the styles that component supports, including the ones defined in superclasses.
Thanks, bhleonard. I saw in the docs that backgroundColor is inherited.
But the compiler treats it as if it's not valid at all, whether inherited or not. I get the error message I mentioned above. (The IDE doesn't seem to know about it either--I get no autocomplete when I type box.ba...)
Oh, I get it now. I looked at your answer again, bh--the part I missed the first time I read it (even though you said it clearly) was that this is a style property, which is set differently from a normal property. I thought what you were pointing out was that it's an inherited property.