You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
478 B

  1. export class LabelItem {
  2. constructor(
  3. readonly id: number,
  4. readonly text: string,
  5. readonly prefixKey: string | null,
  6. readonly suffixKey: string | null,
  7. readonly backgroundColor: string,
  8. readonly textColor: string = '#ffffff'
  9. ) {}
  10. static create(
  11. text: string,
  12. prefixKey: string | null,
  13. suffixKey: string | null,
  14. backgroundColor: string
  15. ): LabelItem {
  16. return new LabelItem(0, text, prefixKey, suffixKey, backgroundColor)
  17. }
  18. }