libs/core/devtools/ngx-devtools-plugin/src/views/journey-details-view/journey-details-view.component.ts

Metadata

Relationships

Used by

No results matching.

Index

Methods

Methods

onEditDynamicForm
onEditDynamicForm(event: JourneyDetailsEditDynamicFormEvent)
Parameters :
Name Type Optional
event JourneyDetailsEditDynamicFormEvent No
Returns : void
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
import { NxHeadlineComponent } from '@allianz/ng-aquila/headline';
import {
  JourneyDetailsEditDynamicFormEvent,
  TalyDevtoolsJourneyDetailsComponent
} from '@allianz/taly-core/devtools';
import {
  DynamicFormEditorModule,
  DynamicFormEditorService
} from '@allianz/taly-core/devtools/dynamic-form-editor';

@Component({
  selector: 'taly-devtools-journey-details-view',
  templateUrl: './journey-details-view.component.html',
  styleUrl: './journey-details-view.component.scss',
  imports: [NxHeadlineComponent, TalyDevtoolsJourneyDetailsComponent, DynamicFormEditorModule],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class TalyDevtoolsJourneyDetailsViewComponent {
  private dynamicFormEditorService = inject(DynamicFormEditorService);

  onEditDynamicForm(event: JourneyDetailsEditDynamicFormEvent) {
    // TODO: the journey details view component does not show the BBs displayed in the global sidebar
    // so the context is assumed to be 'pageBlock'. We could add those BBs in this component as well
    // in the future and this part could be refactored.
    this.dynamicFormEditorService.openDynamicFormEditor(
      event.form,
      'pageBlock',
      event.bbId,
      event.pageId
    );
  }
}
<h4 class="journey-details_headline" nxHeadline="subsection-xsmall">Journey Overview</h4>
<taly-journey-details (editDynamicForm)="onEditDynamicForm($event)"></taly-journey-details>

./journey-details-view.component.scss

.journey-details {
  &_headline {
    border-bottom: 1px solid var(--ui-03, #ececec);
    padding-bottom: 8px;
  }
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""