@pega/dx-component-builder-sdk
Version:
Utility for building custom UI components
27 lines (22 loc) • 796 B
text/typescript
import { Component, OnInit, Input } from '@angular/core';
import { Utils } from '@pega/angular-sdk-components';
export class MaterialUtilityComponent implements OnInit {
headerText$: string;
headerIcon$: string;
headerIconUrl$: string;
noItemsMessage$: string;
headerSvgIcon$: string;
settingsSvgIcon$: string;
constructor(private utils: Utils) {}
ngOnInit(): void {
this.headerSvgIcon$ = this.utils.getImageSrc(this.headerIcon$, this.headerIconUrl$);
this.settingsSvgIcon$ = this.utils.getImageSrc('plus', this.headerIconUrl$);
}
}