PDA

View Full Version : inspectable defaultValue


carriker
06-19-2009, 09:22 PM
I'm creating a component with some inspectable getters/setters. The problem is that I want my default value to be an html tag like:

[Inspectable (name="startTag" type="String" defaultValue="<B>")]

But apparently using the "<" or ">" in a default value creates havoc with the property inspector (and by "havoc" I mean it removes all properties out of the property inspector). Does anyone know how I can accomplish creating an inspectable property with this defaultValue?

Thanks,

--carriker

senocular
06-19-2009, 09:29 PM
Have you tried using character entities? &lt; and &gt; ?

carriker
06-19-2009, 10:01 PM
thanks senocular, it worked!!!