Scandit.Ui.Toolbar

Classes

ToolbarButton

Methods

(static) addButton(icon: string): Scandit.Ui.Toolbar.ToolbarButton

Adds new toolbar button

Parameters:
Name Type Description
icon string

Asset icon path

Returns:
Examples
  • JavaScript
  • ES6
// Assuming that 'icon.png' exists at the specified path
Scandit.Ui.Toolbar.addButton('assets/icon.png');
// Assuming that 'icon.png' exists at the specified path
Scandit.Ui.Toolbar.addButton('assets/icon.png');

(static) clearButtons()

Removes all toolbar buttons

Examples
  • JavaScript
  • ES6
Scandit.Ui.Toolbar.clearButtons();
Scandit.Ui.Toolbar.clearButtons();

(static) setTitle(title: string)

Changes title in toolbar

Parameters:
Name Type Description
title string

Toolbar title

Examples
  • JavaScript
  • ES6
Scandit.Ui.Toolbar.setTitle('Toolbar title');
Scandit.Ui.Toolbar.setTitle('Toolbar title');