Class ResourceTypeMetaData

The ResourceTypeMetaData class contains information for dynamic resource creation.

Constructors

Properties

category: string

The category of the resource.

description: string

The description of the resource.

displayName: string

The display name of the resource.

fnOnCreate: ((libraryPath: LibraryIdentifierPath, pathContainsName: boolean) => Resource)

The lambda to create the resource.

helpURL: string

The help URL.

icon: Image

The icon image.

isFavorite: boolean

Determines if this is a user favorite.

isProjectResource: boolean

Determines if the resource is created by user-code in the current project.

isVisible: boolean

Determines if the resource is visible in the UI.

priority: number

Resources will be sorted by priority. Higher priorities will come first.

type: Type

The type of the resource.

An optional array containing variants.

Methods

  • Determines if the meta data matches the specified query.

    Parameters

    • query: string

    Returns boolean