Options
All
  • Public
  • Public/Protected
  • All
Menu

Handles registration and querying for view components.

Type parameters

  • T

Hierarchy

Index

Constructors

constructor

Methods

getRenderComponent

  • TODO: remove defaultType - Basically a bug. We default the type if no matches were found, rather than using inheritance to associate unknown types the RDF way (using rdfs:Resource).

    Parameters

    Returns T | undefined

Protected lookup

  • Find a component from a cache.

    Parameters

    • predicate: Indexable

      The index of the property (or {RENDER_CLASS_NAME})

    • obj: Indexable

      The index of either the resource type or resource IRI

    • topology: Indexable

      The index of the topology

    • Default value cache: ComponentMapping<T> = this.mapping

      The cache to look into (defaults to the mapping)

    Returns T | undefined

    The appropriate component if any

registerRenderer

  • Register a renderer for a type/property.

    Parameters

    • component: T

      The component to return for the rendering of the object.

    • type: Indexable

      The type's SomeNode of the object which the {component} can render.

    • Default value property: Indexable = id(RENDER_CLASS_NAME)
    • Default value topology: Indexable = id(DEFAULT_TOPOLOGY)

    Returns void

Protected store

Static registerRenderer

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc