Using [Inspectable] metadata tag for code completion.

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")] public var isCool:Boolean; If your like me and have been a bit slack on the metadata [...]

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.

 

1 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



Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...