Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Crud UI Add-on

Stefan Throm
4 years ago Mar 15, 2019 11:15am
Thomas Wagner
4 years ago Mar 20, 2019 10:57am
Joyce Adelusi
3 years ago Oct 10, 2019 2:59pm
Alejandro Duarte
3 years ago Oct 11, 2019 8:41am
jose robles
3 years ago Mar 17, 2020 8:14pm
Alejandro Duarte
2 years ago Apr 17, 2020 6:19pm

For example, I would like to update the captions of the windows and buttons on the form, but I can't find how to do that.

Check the CrudFormFactory::buildCaption and AbstractAutoGeneratedCrudFormFactory::setButtonCaption methods.

Last updated on Apr, 17th 2020
pankaj dusane
2 years ago May 12, 2020 12:28pm
Alejandro Duarte
2 years ago May 14, 2020 4:25pm

Doesn't something like the following work?

crud.setAddOperation(bot -> {
  ... save logic ...
  UI.getCurrent().navigate(TheView.class);
}

You can add buttons to the crud layout. For example:

crud.getCrudLayout().addToolbarComponent(theButton);

Check the examples at https://github.com/alejandro-du/crudui

okeme djbabs
2 years ago Jun 21, 2020 1:43am
Alejandro Duarte
2 years ago Jun 22, 2020 8:55pm
Adexe Rivera Martín
2 years ago Oct 06, 2020 4:05pm
Knut Meyer
2 years ago Jan 28, 2021 10:13am
Knut Meyer
2 years ago Jan 28, 2021 10:32am
Knut Meyer
2 years ago Jan 28, 2021 11:03am
Jan Klatt
2 years ago Feb 17, 2021 1:23pm
Jan Klatt
2 years ago Feb 17, 2021 1:24pm
Alejandro Duarte
2 years ago Feb 17, 2021 3:06pm

Jan Klatt:

Jan Klatt: Is it possible to customize the button-tool-tips "Refresh list", "Add", "Update" and "Delete" ?

Yes. For example: GridCrud::getFindAllButton().getElement().setAttribute("title", "Custom tooltip").

Michael Knigge
1 year ago May 13, 2021 12:17pm
Alejandro Duarte
1 year ago Jun 01, 2021 10:59am