@shko.online/componentframework-mock
Version:
Mocking library to help with testing PowerApps Component Framework Components
16 lines (14 loc) • 425 B
text/typescript
/*
Copyright (c) 2022 Betim Beja and Shko Online LLC
Licensed under the MIT license.
*/
export class OptionMetadataMock implements ComponentFramework.PropertyHelper.OptionMetadata {
Label: string;
Value: number;
Color: string;
constructor(value: number, label: string, color?: string) {
this.Value = value;
this.Label = label;
this.Color = color || '';
}
}