点击add之后就会又弹出框,用户框中能够填好当前登陆的用户。这个功能是怎么实现的
请参考文档:
https://doc.cuba-platform.cn/manual-7.1-chs/opening_screens.html
withLaunchMode
private void createNewEntity() {
screenBuilders.editor(customersTable)
.newEntity()
.withInitializer(customer -> { // lambda to initialize new instance
customer.setName("New customer");
})
.withScreenClass(CustomerEdit.class) // specific editor screen
.withLaunchMode(OpenMode.DIALOG) // open as modal dialog
.build()
.show();
}
怎么修改弹窗的大小
怎么控制弹出弹框时的数据刷新