Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITypeEditorProps<T>

Type parameters

  • T

Hierarchy

  • ITypeEditorProps

Index

Properties

Optional metadata

metadata: Record<string, string>

A key-value map of metadata to send to the type editor.

This metadata is optional, and may be used to describe things like syntax highlighting mode.

onValueChanged

onValueChanged: function

A callback for when the value being edited should change.

Note: This should only emit with valid values of T.

Type declaration

    • (this: void, newValue: T): void
    • Parameters

      • this: void
      • newValue: T

      Returns void

Optional schema

schema: undefined | object

A schema for validating edited values with.

NOTE: Only used by Strings right now, not useful for anything else.

type

type: Type

The type of the value being edited.

The Type must be constant over the lifecycle of the component- this is guaranteed by the , but other parent components must manage this directly.

value

value: T

The value to be edited.

Generated using TypeDoc