Dynamic UIs - miguelperezcolom/mateu GitHub Wiki
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.