Skip to main content

Class: SimpleDataSource

Core-API.SimpleDataSource

Hierarchy​

  • SimpleEventDispatcher<"">

    ↳ SimpleDataSource

Implements​

Constructors​

constructor​

• new SimpleDataSource(...assets)

Parameters​

NameType
...assetsSimpleAssetList[]

Overrides​

SimpleEventDispatcher<''\>.constructor

Methods​

addAssetList​

▸ addAssetList(list): void

Parameters​

NameType
listSimpleAssetList

Returns​

void

Implementation of​

IDataSource.addAssetList


removeAssetList​

▸ removeAssetList(list): void

Parameters​

NameType
listSimpleAssetList

Returns​

void

Implementation of​

IDataSource.removeAssetList


findAssetRegex​

▸ findAssetRegex(query): Promise<undefined | IAsset>

Parameters​

NameType
queryRegExp

Returns​

Promise<undefined | IAsset>

Implementation of​

IDataSource.findAssetRegex


findAsset​

▸ findAsset(query): Promise<undefined | IAsset>

Parameters​

NameType
queryIAssetSearchQuery

Returns​

Promise<undefined | IAsset>

Implementation of​

IDataSource.findAsset


findAssetSimple​

▸ findAssetSimple(match, ignoreCase?): Promise<undefined | IAsset>

Parameters​

NameTypeDefault value
matchstringundefined
ignoreCasebooleanfalse

Returns​

Promise<undefined | IAsset>

Implementation of​

IDataSource.findAssetSimple