Method Signatures and Parameters | |
Jt.divider() | |
Jt.divider(String key) | key (String) A unique key to avoid collisions when calling this method multiple times. |
Chainable builder methods | |
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. |
No description | |
use() | Put the widget in the app, in the |
use(JtContainer container) | Put the widget in the app, in the provided container. |
Examples
Basic section separator
import tech.catheu.jeamlit.core.Jt;
public class DividerApp {
public static void main(String[] args) {
Jt.title("Section 1").use();
Jt.text("Content for section 1").use();
Jt.divider().use();
Jt.title("Section 2").use();
Jt.text("Content for section 2").use();
}
}
Basic section separator
import tech.catheu.jeamlit.core.Jt;
public class DividerApp {
public static void main(String[] args) {
Jt.title("Section 1").use();
Jt.text("Content for section 1").use();
Jt.divider().use();
Jt.title("Section 2").use();
Jt.text("Content for section 2").use();
}
}
Still have questions?
Go to our discussions forum for helpful information and advice from Jeamlit experts.