Defines a canvas with components, actions, and variables.
import { defineCanvasInstance } from '@rippling/rippling-sdk';
Properties
| Property | Required | Type | Description |
|---|---|---|---|
apiName | Required | `${string}__c` | — |
components | Required | CanvasComponent[] | — |
name | Required | null | string | — |
actions | Optional | null | CanvasAction[] | — |
canvasActions | Optional | null | CanvasAction[] | — |
functions | Optional | readonly DefinedFunction<any, any>[] | Function definitions referenced by actions, included in the manifest. |
media | Optional | null | Record<string, CanvasMedia> | — |
sourceId | Optional | null | string | Source ID from an extracted config; never used as the Canvas identity. |
variables | Optional | null | CanvasVariable[] | — |
version | Optional | null | CanvasVersion | — |
TypeScript signature
defineCanvasInstance(props: DefineCanvasInstanceProps): DefinedCanvasInstance;
Returns
DefinedCanvasInstance
Availability
| Capability | Support |
|---|---|
| Pull into a project | Supported |
| Runtime operations | Not available for this helper |