-
Notifications
You must be signed in to change notification settings - Fork 0
Adding new UI elements
Julian Weinelt edited this page Jan 14, 2026
·
1 revision
@Subscribe(value = "UIServiceEnabledEvent")
public void onUIReady(Event event) {
getLogger().info("Registering settings dialogs...");
UIService service = event.get("service").asValue(UIService.class);
SettingsPanel examplePage = new SettingsPanel("Example");
examplePage.add(new ComponentCheckbox().label("Test"));
examplePage.add(new ComponentComboBox().option("Test", () -> getLogger().info("Test2")).option("Test2", () -> getLogger().info("Test3")));
service.addSettingsPanel(examplePage);
}DataCat and all components such as the server software, DataCat Flow, etc. is licensed under GNU GPLv3 License.
Developed with