Skip to content

Interface: ICardBodyContentSpaceProxy

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

example

// Example rule bound to the NumberOfSpacings property of a CardBodyContent
// with type CardBodyContent.Type.Space
export default function GetSpacing(context) {
  const cardBodyContentSpaceProxy = context;

  // Access position
  const position = cardBodyContentSpaceProxy.getItemIndex();

  // Return dynamic spacing based on position
  return position > 0 ? 3 : 1;
}

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