Skip to content

Interface: ICardBodyContentSeparatorProxy

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

example

// Example rule bound to the Style property of a CardBodyContent with type CardBodyContent.Type.Separator
export default function GetSeparatorStyle(context) {
  const cardBodyContentSeparatorProxy = context;

  const sectionProxy = cardBodyContentSeparatorProxy.getSectionProxy();
  const sectionName = sectionProxy.getName();

  // Return different styles based on section name
  return sectionName === 'CardCollectionSectionTypeOne' ? 'card-label-1' : 'card-label-2';
}

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