This controller is experimental and may change without warning. The ComponentGridController is responsible for all communication regarding Component Grid frames. Methods inside this controller can be called by window.SDK.componentGrid.{method-name}

Methods

  • Experimental

    This method will set the data source variable of a specified component grid frame.

    Parameters

    • frameId: string

      the id of the frame to reset

    • dataSourceVariableId: null | string

      the data source variable to set, or null to unset

    Returns Promise<EditorResponse<null>>

  • Experimental

    This method will set the component grid mapping for a specified frame.

    Parameters

    • frameId: string

      the id of the frame that needs to get updated

    • componentId: string

      the id of the component to map

    • targetVariableId: string

      the id of the target variable to map to

    • sourceVariableId: null | string

      the id of the source variable to map from, or null to unset

    • sourceField: null | string

      the source field to map to

    Returns Promise<EditorResponse<null>>