Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IComponent<Data, S>

Interface that should be implemented by component that

Type parameters

  • Data = any

  • S = ComponentState

Hierarchy

Index

Constructors

constructor

Properties

applyEditor

applyEditor: (node: HTMLElement, data: Data) => void

Method that applies data to editor node

Type declaration

    • (node: HTMLElement, data: Data): void
    • Parameters

      • node: HTMLElement
      • data: Data

      Returns void

Optional childContextTypes

childContextTypes: ValidationMap<any>

Optional contextType

contextType: Context<any>

Optional contextTypes

contextTypes: ValidationMap<any>

Optional defaultProps

defaultProps: Partial<IPieceProps<Data>>

Optional displayName

displayName: undefined | string

editLabel

editLabel: string

Label that will be displayed on hover bar, i.e. "Edit Image"

Optional getDerivedStateFromError

getDerivedStateFromError: GetDerivedStateFromError<IPieceProps<Data>, S>

Optional getDerivedStateFromProps

getDerivedStateFromProps: GetDerivedStateFromProps<IPieceProps<Data>, S>

label

label: string

Label that will be displayed in controller nav bar, i.e. "Image Editor"

Optional propTypes

propTypes: WeakValidationMap<IPieceProps<Data>>

Generated using TypeDoc