@pega/dx-component-builder-sdk
Version:
Utility for building custom UI components
26 lines (21 loc) • 875 B
text/typescript
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MatButtonModule } from '@angular/material/button';
import { MatGridListModule } from '@angular/material/grid-list';
({
selector: 'app-action-buttons',
templateUrl: './action-buttons.component.html',
styleUrls: ['./action-buttons.component.scss'],
standalone: true,
imports: [CommonModule, MatGridListModule, MatButtonModule]
})
export class ActionButtonsComponent {
() arMainButtons$: any[];
() arSecondaryButtons$: any[];
() actionButtonClick: EventEmitter<any> = new EventEmitter();
localizedVal = PCore.getLocaleUtils().getLocaleValue;
localeCategory = 'Assignment';
buttonClick(sAction, sButtonType) {
this.actionButtonClick.emit({ action: sAction, buttonType: sButtonType });
}
}