| Method Signatures and Parameters | |
| Jt.subheader(String body) | body (String) The text to display. Markdown is supported, see  | 
| Chainable builder methods | |
| anchor(String anchor) | The anchor name of the header that can be accessed with #anchor in the URL. If omitted, it generates an anchor using the body. If False, the anchor is not shown in the UI. | 
| help(String help) | A tooltip that gets displayed next to the text. If this is  | 
| width(String width) | The width of the element. This can be one of the following: 
 | 
| width(int widthPixels) | The width of the element in pixels. The element will have a fixed width. If the specified width is greater than the width of the parent container, the width of the element matches the width of the parent container. | 
| key(String key) | A string to use as the unique key for the widget. If this is omitted, a key will be generated for the widget based on its content. No two widgets may have the same key. | 
| Only applies to input widgets that have a provided  | |
| use() | Put the widget in the app, in the  | 
| use(JtContainer container) | Put the widget in the app, in the provided container. | 
Examples
Basic subheader and subheader with markdown formatting and styling
 import io.javelit.core.Jt;
 public class SubHeaderApp {
     public static void main(String[] args) {
         // Basic subheader
         Jt.subheader("This is a title").use();
         // Subheader with Markdown and styling
         Jt.subheader("_Javelit_ is **cool** :sunglasses:").use();
     }
 }
Still have questions?
Go to our discussions forum for helpful information and advice from Javelit experts.