UNPKG

@pega/dx-component-builder-sdk

Version:

Utility for building custom UI components

26 lines (21 loc) 875 B
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'; @Component({ selector: 'app-action-buttons', templateUrl: './action-buttons.component.html', styleUrls: ['./action-buttons.component.scss'], standalone: true, imports: [CommonModule, MatGridListModule, MatButtonModule] }) export class ActionButtonsComponent { @Input() arMainButtons$: any[]; @Input() arSecondaryButtons$: any[]; @Output() actionButtonClick: EventEmitter<any> = new EventEmitter(); localizedVal = PCore.getLocaleUtils().getLocaleValue; localeCategory = 'Assignment'; buttonClick(sAction, sButtonType) { this.actionButtonClick.emit({ action: sAction, buttonType: sButtonType }); } }