Skip to content

Dynamic UIs

Miguel Pérez Colom edited this page Dec 27, 2024 · 4 revisions

Mateu provides 4 special interfaces: DynamicUI, DynamicForm and DynamicCrud.

public interface DynamicUI {
    Mono<UI> build(ServerHttpRequest serverHttpRequest);
}
public interface DynamicForm {
    Mono<Form> build(ServerHttpRequest serverHttpRequest);
}
public interface DynamicCrud {
    Mono<Crud> build(ServerHttpRequest serverHttpRequest);
}

By implementing those interfaces you can directly supply the dtos returned to the frontend, instead of using annotated classes for defining the UI. This means you need to understand the api, though.

Clone this wiki locally