Using [Inspectable] metadata tag for code completion.

By vinnie.vivace, September 10, 2009 7:31 pm

If you want your custom components bindable properties to popup selectable values (i.e. true/false) via code completion in Flex Builder and also to show in the Properties Panel in design view, the Inspectable tag is your friend:

[Inspectable(category="General", enumeration="true,false")]
  1. public var isCool:Boolean;

If your like me and have been a bit slack on the metadata tags, go here to be schooled, theres lots more goodness:

http://livedocs.adobe.com/flex/3/html/help.html?content=metadata_3.html

respect to Greg Dove of Degrafa for sharing this knowledge.

One Response to “Using [Inspectable] metadata tag for code completion.”

  1. Campbell says:

    Haven’t used design view for many years, but didnt know it added to the “code completion” popup in FB. Very cool!

Leave a Reply

Panorama Theme by Themocracy