BUNDLEWARE

context.asset

Context

A file from the toolbar's own assets/ folder, by its path there, such as 'lottery/powerball/01.webp': as a data: URL (the default) for an image, a sound or a style, as 'text', or as 'base64' for music.readMidi and FontFace.

Signaturecontext.asset(path: string, options?: AssetOptions): Promise<string>
Take it fromconst { asset } = useToolbar();

Parameters

ParameterTypeDescription
pathstring
optionsAssetOptionsOptional.

Return Value

TypePromise<string>

Availability

Bundleware1.0.1, build 2026.12.02