Skip to main content

Topbar

The Topbar component provides methods to manipulate and interact with the topbar. To access this component write Visu.topbar.

setResult()

Set result to the topbar.

setResult(result: string): void;

getResult()

Get result from the topbar.

getResult(): string;

setColor()

Set the color of the topbar. The color must be a string in hexadecimal format (like #f23536).

setColor(color: string): void;

getColor()

Get the color of the topbar.

getColor(): string;

setProperty()

Set property to the topbar.

setProperty(key: string, value: string): void;

getProperty()

Gets property from the topbar. If the property doesn't exist, it throws an error.

getProperty(key: string): string;

hasProperty()

Checks if the property exists in the topbar.

hasProperty(key: string): boolean;

removeProperty()

Removes the property from the topbar. If the property doesn't exist, it throws an error.

removeProperty(key: string): void;

clear()

Clears the topbar.

clear(): void;