libs/core/devtools/ngx-devtools-plugin/src/views/journey-details-view/journey-details-view.component.ts
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | taly-devtools-journey-details-view |
| standalone | true |
| imports |
NxHeadlineComponent
|
| styleUrls | ./journey-details-view.component.scss |
| templateUrl | ./journey-details-view.component.html |
| styleUrl | ./journey-details-view.component.scss |
No results matching.
NxHeadlineComponent
TalyDevtoolsJourneyDetailsComponent
DynamicFormEditorModule
Methods |
| onEditDynamicForm | ||||||
onEditDynamicForm(event: JourneyDetailsEditDynamicFormEvent)
|
||||||
|
Parameters :
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;
}
}