ohra
ohra

Reputation: 506

Forge Viewer button with text

What's the simplest way of making a button with text instead of an icon? So that it still fits in with the overall UI control system, e.g. can be added to a ComboButton or a Toolbar. The API doesn't seem to have any official way of doing this.

Upvotes: 0

Views: 182

Answers (1)

Bryan Huang
Bryan Huang

Reputation: 5342

You can access the HTML element (container) of your button directly and code against it (e.g. innerText) like:

button.container.innerText=233

enter image description here

Upvotes: 2

Related Questions