Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PropertyDataService

PropertyDataService should be implemented to provide property data for the given selection.

Hierarchy

  • PropertyDataService

Index

Properties

id: string

A unique id for this provider.

label?: string

A human-readable name for this provider.

Methods

  • canHandleSelection(selection: undefined | Object): number
  • Test whether this provider can provide property data for the given selection. Return a nonzero number if this provider can provide; otherwise it cannot. Never reject.

    A returned value indicating a priority of this provider.

    Parameters

    • selection: undefined | Object

    Returns number

  • providePropertyData(selection: undefined | Object): Promise<undefined | Object>
  • Provide property data for the given selection. Resolve to a property view content widget. Never reject if canHandle returns a positive number; otherwise should reject.

    Parameters

    • selection: undefined | Object

    Returns Promise<undefined | Object>