Knowledge Base
cancel
Showing results for 
Search instead for 
Did you mean: 

What are the rules for inheritance in TGML?

Issue

What are the rules for inheritance in TGML?

Environment

TGML editor

Cause

In order to create TGML components that function as designed,  it is important to understand the TGML rules for inheritance

Resolution

Attribute inheritance means that a child element inherits (gets) the attribute value from an ancestor element if the attribute value is undefined (omitted) and if the attribute has been specified for an ancestor (any of the parents). In the example below, Rectangle will inherit the Fill value from the component.

Tags (1)
Version history
Revision #:
1 of 1
Last update:
2 weeks ago
Updated by: