Skip to content

Dynamic Inputs and Outputs #32

@patrickcorrigan

Description

@patrickcorrigan

I'm using context to be able to have different inputs to my dynamic components. Is there a way to do the same for outputs? I don't know what my outputs will be ahead of time. This is fine for inputs but I can't figure it out for outputs

        <ng-container
           *ngxComponentOutlet="col.component; context: col.inputs"
         >
         </ng-container>

I'm building a table component that can take either values or components as data. Wondering how to bind outputs


`[
        { type: 'data', value: pipeline.name },
        { type: 'data', value: pipeline.time_last_modified },
        { type: 'data', value: 'Source' },
        { type: 'data', value: 'Dest' },
        { type: 'data', value: 'Schema Update' },
        { type: 'data', value: 'Schedule' },
        { type: 'data', value: 'Status' },
        {
          type: 'component',
          component: LockComponent,
          inputs: { owner: pipeline.lock_owner },
        },
        {
          type: 'component',
          component: PipelineLibraryActionsButtonsComponent,
          inputs: { pipeline },
          outputs: {run}
        },
      ])`

Metadata

Metadata

Assignees

No one assigned

    Labels

    need docThat issue should be shown in documentationresolvedThat issue was resolved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions