https://discord.umbraco.com logo
I have for example: ``` @customElement('my-file-e...
# package-development
l
I have for example:
Copy code
@customElement('my-file-editor')
export class FileEditorElement
  extends UmbFormControlMixin<FileFieldData, typeof UmbLitElement>(
    UmbLitElement,
  )
  implements UmbPropertyEditorUiElement

  constructor() {
    super()

    this.addValidator(
      'customError',
      () => 'This field must contain a "Unicorn"',
      () => false,
    )
  }