Skip to content

Interface: ICardBodyContentTextProxy

A designer-facing interface that provides access to card body content text properties.

example

// Example rule bound to the Text property of a CardBodyContent with type CardBodyContent.Type.Text
export default function GetText(context) {
  const cardBodyContentTextProxy = context;

  const parentBody = cardBodyContentTextProxy.getParent();
  const separators = parentBody.getSeparators();

  // Return different text based on separator settings
  if (separators.getBodySeparator()) {
    return 'Content with body separator';
  }
  return 'Content without body separator';
}

Hierarchy

Implemented by

Summary

Properties

Class Properties

Currently none in this class.

Inherited Properties

Methods

Class Methods

Currently none in this class.

Inherited Methods

Methods