Exposed Attributes

You can make certain attributes of a component accessible from outside the component. For example, you can use the Fill attribute to let an external signal change the color of a component. You add Expose as a separate element to an object that has an attribute you want to make accessible in your component.

An exposed attribute is displayed among the attributes of its parent figure and ancestors all the way up to the root figure (Tgml) of a graphic, in the Exposed Properties part of the Properties pane.

The Expose element has two attributes:

  • Name: The name of the exposed attribute.
  • ExposedAttribute: The attribute that is exposed.

NOTE: When naming exposed attributes, note that if two or more exposed elements have the same name, this is considered to be intentional. It means that the named element is displayed only once in the Exposed Properties part of the Properties pane.