close

Filter

loading table of contents...

Studio Developer Manual / Version 2101

Table Of Contents

7.10 Inheritance of Property Values

The CAE sometimes renders fallbacks if a content property is not set, for example, by using a value of another property instead. To visualize this in Studio, you may use content of a property editor from another property editor as the default empty text.

This is currently possible for a few property fields. One is the StringPropertyField and the other one is the TextAreaPropertyField. While the StringPropertyField may inherit its content from another StringPropertyField, the TextAreaPropertyField may inherit its content from a StringPropertyField or a RichTextPropertyField.

In order to use this visualization, you may use the StringPropertyFieldDelegationPlugin or the TextAreaPropertyFieldDelegationPlugin attached to the property field that should inherit the value.

<editor:PropertyFieldGroup>
  ...
  <!-- inherit its content from the title property-->
  <editor:StringPropertyField propertyName="teaserTitle">
    <editor:plugins exml:mode="append">
      <editor:StringPropertyFieldDelegatePlugin delegatePropertyName="title"/>
    </editor:plugins>
  </editor:StringPropertyField>
  <!-- inherit its content from the detailText property-->
  <editor:TextAreaPropertyField propertyName="teaserText"
                                itemId="teaserText"
                                changeBuffer="1000">
    <editor:plugins exml:mode="append">
      <editor:TextAreaPropertyFieldDelegatePlugin delegatePropertyName="detailText"/>
    </editor:plugins>
  </editor:TextAreaPropertyField>
  ...
</editor:PropertyFieldGroup>

Example 7.42. Configuring Property Inheritance


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.