Top | Previous | Next |
Using HTML in Ignition |
A lot of components in Ignition accept HTML. Using HTML enables you to add a unique look to your project. As an example, many users wish to have text on buttons and labels wrap onto multiple lines. This is a formatting feature that at first glance appears to be absent from Ignition. This style option is actually easily achievable by simply appending an opening html tag <html> to your text. Below is a short list of some of the other ways you can take advantage of HTML within Ignition. This list is not exhaustive so feel free to experiment with other components to see if they accept HTML.
Label Component The Label component is one of the components that accepts HTML, making it very versatile. A label can display text, images, or both. The text can be HTML formatted. Here are the steps to add HTML to a label:
<HTML>First Line<BR>Second Line
The label now has two lines.
Button Component The Button component also accepts HTML:
<HTML>Export<BR>To <B>CSV</B>
Mouseover Text One of the most powerful places to use HTML is on the Mouseover Text property that exists on every component. The Mouseover Text is the text that is displayed in the tooltip, which pops up on mouseover of the component. You can display information about the component or the signal it is bound to.
<HTML>Instructions<BR><UL><LI>Step 1</LI><LI>Step 2</LI><LI>Step 3</LI></UL>
(*NOTE: Here the tooltip was added to the label from the first example)
Table Component Another place you can add HTML is the Table component. You can add HTML to the header row or to each of the individual cells of the table. To add HTML to the header:
<HTML>Column<BR>1
Now the table's header has multiple lines.
. |